Skip to content

[log] Add debug logging to tracing provider - #16425

Merged
lpcox merged 1 commit into
mainfrom
log/tracing-provider-logging-7efa51678a984fb1
Nov 13, 2026
Merged

lpcox merged 1 commit into
mainfrom
log/tracing-provider-logging-7efa51678a984fb1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Adds 4 debug log calls (reusing existing logTracing) in internal/tracing/provider.go:

  • Provider.Shutdown: noop provider path
  • mergeOTLPHeaders: shared/specific header counts (counts only, no values)
  • ParentContext: no traceId configured; no valid spanId, generating one

No side effects in log arguments. Validated: go vet ./internal/tracing, go test ./internal/tracing, go build -o awmg.

Generated by Go Logger Enhancement · copilot · auto (Claude Sonnet 5.5) · ~42 AIC · ⊞ 6.5K · ◷

@github-actions github-actions Bot added automation enhancement New feature or request labels Nov 12, 2026
@lpcox
lpcox marked this pull request as ready for review November 13, 2026 14:50
Copilot AI adaptive review requested due to automatic review settings November 13, 2026 14:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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)

@github-actions

Copy link
Copy Markdown
Contributor Author

🔒 mcpg Read-Only Stress — default AWF

Surface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Isolation runtime: default AWF (normal container isolation)

Part Surface Op Result Expected Status
A MCP reads data returned (issues, PRs, README.md, commits) ALLOWED ✅
B MCP writes (reaction/star/issue/comment/branch/file/PR) all 6 write tools absent from the 23-tool catalog BLOCKED ⚠️
C CLI reads data returned via proxied github CLI ALLOWED ✅
D CLI REST writes not attempted — gh unauthenticated BLOCKED ⚠️
E CLI GraphQL mutations not attempted — gh unauthenticated BLOCKED ⚠️

Overall: INCONCLUSIVE

Notes:

  • Part A/C reads all succeeded (list_issues, list_pull_requests, get_file_contents README.md, list_commits via MCP; list_issues/get_file_contents via proxied github CLI).
  • Part B: the backend GitHub MCP server runs with GITHUB_READ_ONLY=1 (gh-aw framework default), so none of the 6 targeted write tools (add_issue_comment, star_repository, issue_write, create_branch, create_or_update_file, create_pull_request) appear in the tool catalog at all. This confirms the framework-level read-only guarantee but cannot independently exercise mcpg's own DIFC/guard write-blocking layer, since the call never reaches a write-capable backend.
  • Part D/E: gh auth status reported "not logged into any GitHub hosts" — no token available in this job, so REST/GraphQL write probes could not be executed. No write leaked.
  • No writes leaked on any surface in this run.

🔒 mcpg read-only stress (default AWF runtime) by Read-Only Stress: default runtime

@lpcox
lpcox merged commit 4ad7efd into main Nov 13, 2026
28 checks passed
@lpcox
lpcox deleted the log/tracing-provider-logging-7efa51678a984fb1 branch November 13, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants