Skip to content

feat: add OpenTelemetry HTTP client instrumentation#158

Merged
d0ugal merged 1 commit intomainfrom
feat/add-otel-http-instrumentation
Nov 1, 2025
Merged

feat: add OpenTelemetry HTTP client instrumentation#158
d0ugal merged 1 commit intomainfrom
feat/add-otel-http-instrumentation

Conversation

@d0ugal
Copy link
Copy Markdown
Owner

@d0ugal d0ugal commented Nov 1, 2025

Add otelhttp transport to HTTP client for automatic distributed tracing of all outbound HTTP requests. This enables better observability and tracing of GitHub API calls.

Changes

  • Added go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp import
  • Updated HTTP client to use otelhttp.NewTransport(http.DefaultTransport)
  • Updated go.mod and go.sum with new dependency

Testing

  • ✅ Code compiles successfully
  • ✅ All tests pass
  • ✅ No linting errors

Add otelhttp transport to HTTP client for automatic distributed tracing
of all outbound HTTP requests. This enables better observability and
tracing of GitHub API calls.
@d0ugal d0ugal enabled auto-merge (rebase) November 1, 2025 20:49
@d0ugal d0ugal merged commit f8c898d into main Nov 1, 2025
7 checks passed
@d0ugal d0ugal deleted the feat/add-otel-http-instrumentation branch November 1, 2025 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant