Repository navigation
[log] Add debug logging to tracing provider - #16425
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain, and the changes are limited to side-effect-free diagnostic logging without altering tracing behavior or exposing sensitive header values.
No open issues 🎉
What changed in this PR
Adds diagnostic debug logging to the tracing provider without changing tracing behavior or exposing sensitive header values.
Changes:
- Logs when noop provider shutdown is skipped.
- Logs shared and endpoint-specific OTLP header counts.
- Logs parent-context fallback cases when trace or span IDs are unavailable.
| File | Description |
|---|---|
| internal/tracing/provider.go | Adds four side-effect-free debug log calls across provider shutdown, OTLP header merging, and parent-context handling. |
Review effort: Lite (dynamic)
Contributor
Author
🔒 mcpg Read-Only Stress — default AWFSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: INCONCLUSIVE Notes:
|
This was referenced Nov 13, 2026
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.
Adds 4 debug log calls (reusing existing
logTracing) ininternal/tracing/provider.go:Provider.Shutdown: noop provider pathmergeOTLPHeaders: shared/specific header counts (counts only, no values)ParentContext: no traceId configured; no valid spanId, generating oneNo side effects in log arguments. Validated:
go vet ./internal/tracing,go test ./internal/tracing,go build -o awmg.