Add OTLP export docs, examples, and endpoint path fix - #534
Merged
Merged
Conversation
…h fix - Expand README.md with a full OTLP export section covering quick start, env vars, YAML config, TLS/mTLS, and troubleshooting - Add examples/README.md with prerequisites and run instructions - Add otlp_http.rb and otlp_with_headers.rb runnable example scripts - Annotate otel.rb header to cross-reference new OTLP examples - Fix resolve_otlp_endpoint to append /v1/traces to user-supplied base URLs (OTEL_EXPORTER_OTLP_ENDPOINT) that have no path - Add two unit tests covering base URL path-appending and fully-qualified URL pass-through Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
arjun-rajappa
force-pushed
the
otlp-export-docs-and-endpoint-fix
branch
from
September 30, 2026 05:18
5bee86b to
7b331e2
Compare
arjun-rajappa
marked this pull request as ready for review
September 30, 2026 05:19
Update SonarQube exclusion patterns to recursively match files under .github, bin, examples, and extras directories, and exclude examples from duplicate code detection (CPD) Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
arjun-rajappa
force-pushed
the
otlp-export-docs-and-endpoint-fix
branch
from
September 30, 2026 06:53
6ee5991 to
45c9be5
Compare
pvital
requested changes
Sep 30, 2026
pvital
left a comment
Member
There was a problem hiding this comment.
Two few minor change requests.
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
|
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.



Why
The OTLP export feature lacked end-user documentation and runnable examples, making it hard to discover and configure. Additionally, a bug caused the exporter to crash when
OTEL_EXPORTER_OTLP_ENDPOINTwas set to a base URL without a path (http://host:4318), becauseopentelemetry-exporter-otlpexpects the path to be included.What
## OTLP Exportsection covering quick start, all supported environment variables, YAML configuration, config precedence, TLS/mTLS setup, and a troubleshooting guide.# Made with Bobcomment.resolve_otlp_endpoint— fixed to append/v1/tracesto user-supplied base URLs that have no path, matching the OTLP spec behaviour forOTEL_EXPORTER_OTLP_ENDPOINT.host_agent_reporting_observer_test.rb— two new tests: base URL gets path appended; fully-qualified URL is passed through unchanged.