Skip to content

[log] tracing: add debug logging to config_resolver.go#8306

Merged
lpcox merged 1 commit into
mainfrom
log/tracing-config-resolver-6be83080c665d6aa
Jun 30, 2026
Merged

[log] tracing: add debug logging to config_resolver.go#8306
lpcox merged 1 commit into
mainfrom
log/tracing-config-resolver-6be83080c665d6aa

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Adds 5 logTracing.Printf calls to internal/tracing/config_resolver.go for three previously-unlogged functions, using the package-level logger already declared in provider.go.

Changes

resolveEndpoint

  • Logs the input endpoint and signalPath at function entry
  • Logs when URL parsing fails and the string-append fallback is used (with result)
  • Logs the final resolved endpoint on the success path

resolveServiceName

  • Logs when a configured service name is used (vs. the silent default path)

resolveCommaSeparatedExtraEndpoints

  • Pre-computes the strings.Split result into parts (no functional change)
  • Logs the count of valid endpoints parsed vs. the number of raw entries

Validation

  • go vet ./internal/tracing/... — clean
  • go test ./internal/tracing/... — all tests pass
  • go build — binary compiles successfully

No new imports required; logTracing is the existing package-level logger from provider.go.

Generated by Go Logger Enhancement · 433.3 AIC · ⊞ 8.4K ·

Add logTracing.Printf calls to three functions in config_resolver.go
that previously had no logging:
- resolveEndpoint: log input endpoint/signalPath, URL-parse fallback path,
  and resolved result
- resolveServiceName: log when using a configured service name
- resolveCommaSeparatedExtraEndpoints: log count of valid endpoints parsed

Uses the existing package-level logTracing logger (declared in provider.go).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added automation enhancement New feature or request labels Jun 29, 2026
@lpcox lpcox marked this pull request as ready for review June 30, 2026 13:18
Copilot AI review requested due to automatic review settings June 30, 2026 13:18

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.

Pull request overview

Adds additional debug-level tracing logs in the OTLP configuration resolver to make endpoint/service-name resolution and extra-endpoint parsing easier to troubleshoot when DEBUG enables the existing tracing:provider logger.

Changes:

  • Log resolveEndpoint inputs, the string-fallback path when URL parsing fails, and the final resolved endpoint.
  • Log when a configured tracing service name is used (vs. default).
  • Log how many valid extra endpoints were parsed from GH_AW_OTLP_ENDPOINTS (comma-separated form), with a small refactor to store strings.Split results in parts.
Show a summary per file
File Description
internal/tracing/config_resolver.go Adds debug logging around OTLP endpoint/service-name resolution and extra-endpoint parsing to improve diagnosability when tracing config is mis-specified.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Low

@lpcox lpcox merged commit 8aa90d1 into main Jun 30, 2026
23 checks passed
@lpcox lpcox deleted the log/tracing-config-resolver-6be83080c665d6aa branch June 30, 2026 13:30
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