opentelemetry-exporter-otlp-json-file: add OTLP JSON file Docker tests#5412
Open
herin049 wants to merge 8 commits into
Open
opentelemetry-exporter-otlp-json-file: add OTLP JSON file Docker tests#5412herin049 wants to merge 8 commits into
herin049 wants to merge 8 commits into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds functional Docker-based coverage for the opentelemetry-exporter-otlp-json-file exporter by running an OpenTelemetry Collector Contrib instance configured with the otlp_json_file receiver and validating that traces/metrics/logs emitted by file exporters are received by the existing OTLP test server.
Changes:
- Extend the
docker-tests-otlpexportertox env to install the OTLP JSON proto + JSON exporter packages and prepare the bind-mounted file output directories. - Add “file” variants to the existing OTLP traces/metrics/logs functional test matrices using
FileSpanExporter,FileMetricExporter, andFileLogExporter. - Update the Docker test collector setup (compose + config) to read
*.jsonlfrom a host-mounted directory viaotlp_json_file/*receivers.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
tox.ini |
Installs JSON OTLP packages for docker tests and prepares on-host directories used by the file exporter + collector tailing. |
tests/opentelemetry-docker-tests/tests/otlpexporter/test_otlp_traces_functional.py |
Adds FileSpanExporter to the functional test parameter set using a per-run .jsonl path. |
tests/opentelemetry-docker-tests/tests/otlpexporter/test_otlp_metrics_functional.py |
Adds FileMetricExporter to the functional test parameter set using a per-run .jsonl path. |
tests/opentelemetry-docker-tests/tests/otlpexporter/test_otlp_logs_functional.py |
Adds FileLogExporter to the functional test parameter set using a per-run .jsonl path. |
tests/opentelemetry-docker-tests/tests/otlpexporter/conftest.py |
Adds a session autouse cleanup fixture for stale .jsonl artifacts under the mounted directory. |
tests/opentelemetry-docker-tests/tests/otlpexporter/__init__.py |
Adds OTLP_FILE_DATA_DIR, lazy exporter kwargs support, and a helper to generate unique .jsonl file paths. |
tests/opentelemetry-docker-tests/tests/docker-compose.yml |
Switches to Collector Contrib image and bind-mounts the file exporter output directory into the collector. |
tests/opentelemetry-docker-tests/tests/collector-config.yaml |
Adds otlp_json_file/* receivers and includes them in each signal pipeline. |
tests/opentelemetry-docker-tests/tests/.gitignore |
Ignores the runtime-created file-output directory in docker tests. |
.changelog/5412.added |
Changelog entry for adding Docker tests for the OTLP JSON file exporter. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add Docker based integration tests for the OTLP JSON File exporter.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Does This PR Require a Contrib Repo Change?
Checklist: