Repository navigation
docs: explain OTLP log and trace export configuration - #56515
Open
rudycelekli wants to merge 2 commits into
Open
rudycelekli wants to merge 2 commits into
rudycelekli wants to merge 2 commits into
Conversation
Contributor
|
The following comment was made by an LLM, it may be inaccurate: |
Contributor
There was a problem hiding this comment.
The new section matches the current export code. I checked the appended /v1/logs and /v1/traces paths, header parsing, percent-decoding of resource attributes, the built-in resource attributes, and that export is off when no endpoint is set. Nothing to run, since this only changes docs.
Public API impact: none. This documents environment variables OpenCode already reads.
Worth fixing:
- The background-server paragraph doesn't say how to pass the variables to the managed service (see the inline comment).
- A short note for troubleshooting would help: if one
OTEL_RESOURCE_ATTRIBUTESentry is malformed (for example a missing=or a bad%escape), OpenCode silently drops all custom attributes, not just that one.
Also, #55004 changes how OTEL_EXPORTER_OTLP_HEADERS values are decoded. Whichever of the two PRs merges second should update the headers row to match.
Related: #55004
Signed-off-by: Rudy Celekli <[email protected]>
This was referenced Oct 28, 2026
This branch has not been deployed
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.
Issue for this PR
Closes #47195
Type of change
What does this PR do?
Document the implemented OTLP/HTTP endpoint, collector headers, resource attributes, and separate CLI/server environments. Include foreground and managed-service examples, restart/persistence guidance, automatically appended signal paths, and the all-or-nothing handling of malformed custom resource attributes.
How did you verify your code works?
bun run check:generatedandgit diff --checkpass.bun run checkpass.Screenshots / recordings
Documentation-only; rendered troubleshooting page captured in qualification artifact.
Checklist
Added by the opencode bot (AI-generated).
Related: #55004