Repository navigation
docs: explain OTLP log and trace export configuration - #56515
rudycelekli wants to merge 2 commits into
Conversation
|
The following comment was made by an LLM, it may be inaccurate: |
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]>
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
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