Skip to content

fix(deps): update opentelemetry-go-contrib monorepo#1014

Merged
renovate-sh-app[bot] merged 2 commits intomainfrom
grafanarenovatebot/opentelemetry-go-contrib-monorepo
Feb 12, 2026
Merged

fix(deps): update opentelemetry-go-contrib monorepo#1014
renovate-sh-app[bot] merged 2 commits intomainfrom
grafanarenovatebot/opentelemetry-go-contrib-monorepo

Conversation

@renovate-sh-app
Copy link
Copy Markdown
Contributor

@renovate-sh-app renovate-sh-app Bot commented Feb 5, 2026

This PR contains the following updates:

Package Change Age Confidence
go.opentelemetry.io/contrib/bridges/otelslog v0.14.0v0.15.0 age confidence
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.64.0v0.65.0 age confidence
go.opentelemetry.io/contrib/instrumentation/runtime v0.64.0v0.65.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

open-telemetry/opentelemetry-go-contrib (go.opentelemetry.io/contrib/bridges/otelslog)

v0.15.0

Compare Source

[0.15.0] - 2020-12-11

Added
  • A new Amazon EKS resource detector. (#​465)
  • A new gcp.CloudRun detector for detecting resource from a Cloud Run instance. (#​455)

Raw changes made between v0.14.0 and v0.15.0

e7b70eb Prepare for v0.15.0 release (#​486)
54c6a6c Add detector for Cloud Run service. (#​455)
79af2e9 Bump google.golang.org/grpc from 1.33.2 to 1.34.0 in /instrumentation/google.golang.org/grpc/otelgrpc (#​481)
fd9db4a Bump cloud.google.com/go from 0.72.0 to 0.73.0 in /detectors/gcp (#​483)
8f0fa29 Bump google.golang.org/grpc from 1.33.2 to 1.34.0 in /instrumentation/google.golang.org/grpc/otelgrpc/example (#​482)
401ff52 Bump google.golang.org/grpc from 1.33.2 to 1.34.0 in /propagators/opencensus/examples (#​480)
da8faf5 Bump github.com/aws/aws-sdk-go from 1.35.35 to 1.36.2 in /detectors/aws (#​479)
b02fae7 Add Amazon EKS Resource Detector (#​465)
d1534b8 add opencensus propagation readme and example (#​473)
e1c598c Add AWS X-Ray Propagator (#​462)
f9f5a21 move opencensus binary propagation to contrib (#​467)
82eb6a3 Bump github.com/google/go-cmp from 0.5.3 to 0.5.4 in /instrumentation/net/http/httptrace/otelhttptrace (#​472)
7ffe595 Bump github.com/google/go-cmp from 0.5.3 to 0.5.4 in /propagators (#​471)
be1c230 Bump github.com/google/go-cmp from 0.5.3 to 0.5.4 in /exporters/metric/cortex (#​470)
59c92e2 Bump github.com/aws/aws-sdk-go from 1.35.33 to 1.35.35 in /detectors/aws (#​469)
9e9f21b Bump github.com/golangci/golangci-lint from 1.32.2 to 1.33.0 in /tools (#​468)
645d23a Add Amazon ECS Resource Detector (#​466)
d648427 Bump github.com/aws/aws-sdk-go from 1.35.28 to 1.35.33 in /detectors/aws (#​463)
3be1f0d Bump github.com/Shopify/sarama from 1.27.0 to 1.27.2 in /instrumentation/github.com/Shopify/sarama/otelsarama (#​464)


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

Need help?

You can ask for more help in the following Slack channel: #proj-renovate-self-hosted. In that channel you can also find ADR and FAQ docs in the Resources section.

@renovate-sh-app renovate-sh-app Bot enabled auto-merge (squash) February 5, 2026 21:08
@martincostello
Copy link
Copy Markdown
Member

open-telemetry/opentelemetry-go-contrib#8268 removed WithRouteTag:

handler := otelhttp.WithRouteTag(pattern, http.HandlerFunc(handlerFunc))

I'm not familiar with what the changes to maintain the status quo would be though.

@zeitlinger
Copy link
Copy Markdown
Member

open-telemetry/opentelemetry-go-contrib#8268 removed WithRouteTag:

handler := otelhttp.WithRouteTag(pattern, http.HandlerFunc(handlerFunc))

I'm not familiar with what the changes to maintain the status quo would be though.

seems we can just remove it (Deprecated: spans are automatically annotated with the route attribute.)

@renovate-sh-app renovate-sh-app Bot force-pushed the grafanarenovatebot/opentelemetry-go-contrib-monorepo branch 6 times, most recently from 9402dd5 to 90c74f0 Compare February 12, 2026 07:06
@zeitlinger
Copy link
Copy Markdown
Member

open-telemetry/opentelemetry-go-contrib#8268 removed WithRouteTag:

handler := otelhttp.WithRouteTag(pattern, http.HandlerFunc(handlerFunc))

I'm not familiar with what the changes to maintain the status quo would be though.

seems we can just remove it (Deprecated: spans are automatically annotated with the route attribute.)

will be fixed in #1025

@renovate-sh-app renovate-sh-app Bot force-pushed the grafanarenovatebot/opentelemetry-go-contrib-monorepo branch from 90c74f0 to 60633e7 Compare February 12, 2026 16:06
@zeitlinger
Copy link
Copy Markdown
Member

This PR should not be merged yet: upgrading otelhttp from v0.64.0 to v0.65.0 removes otelhttp.WithRouteTag (deleted, not just deprecated), which we rely on to set the http.route span attribute.

The claimed automatic route extraction from http.Request.Pattern (Go 1.22+) does not work in either v0.64.0 or v0.65.0 when otelhttp.NewHandler wraps a ServeMux. The http.route attribute is read in RequestTraceAttrs at span creation time — before the ServeMux has routed the request and populated r.Pattern. The fix (PR #7192) has landed on main but has not shipped in a release yet.

Upgrading now would cause a compile error (since we use WithRouteTag) and break the oats examples/go acceptance test (TraceQL query for http.route returns no traces).

We should wait for an otelhttp release that includes the fix from #7192.

@martincostello
Copy link
Copy Markdown
Member

The tests fail and prevent merging anyway, so there's no harm in leaving auto-merge enabled until renovate updates this PR to a newer version with the fix.

@zeitlinger
Copy link
Copy Markdown
Member

Good point. Once an otelhttp release ships that includes the fix from open-telemetry/opentelemetry-go-contrib#7192, the upgrade should be straightforward:

  1. Remove the handleFunc wrapper and WithRouteTag call in examples/go/main.go
  2. Register handlers directly: mux.HandleFunc("/rolldice", rolldice)
  3. The http.route attribute will be set automatically from r.Pattern after the ServeMux routes the request

That's it — the otelhttp.NewHandler(mux, "/") wrapping stays the same.

@martincostello
Copy link
Copy Markdown
Member

The referenced PR was merged months ago, and the merge commit has these tags on it, which suggests it should work with at least one stable release already?

image

If not, do they need poking to ship a fix?

@zeitlinger
Copy link
Copy Markdown
Member

If not, do they need poking to ship a fix?

let me look into that

@zeitlinger
Copy link
Copy Markdown
Member

Update: the fix from #7192 is included in v0.65.0, but it only fixes the span name, not the http.route attribute. The root cause is that otelhttp.NewHandler(mux, "/") calls RequestTraceAttrs before the ServeMux routes the request, so r.Pattern is empty at that point. After routing, otelhttp updates the span name but never sets http.route as a span attribute — this is an upstream bug (see open-telemetry/opentelemetry-go-contrib#8107).

Workaround (committed in 1dd6770): wrap individual route handlers instead of the whole mux:

mux.Handle("/rolldice", otelhttp.NewHandler(http.HandlerFunc(rolldice), "/rolldice"))

This way the ServeMux routes first, populates r.Pattern, and otelhttp correctly reads it in RequestTraceAttrs to set http.route.

The oats examples/go acceptance test passes with this approach. This PR should be ready to merge once CI is green.

renovate-sh-app Bot and others added 2 commits February 12, 2026 19:53
| datasource | package                                                       | from    | to      |
| ---------- | ------------------------------------------------------------- | ------- | ------- |
| go         | go.opentelemetry.io/contrib/bridges/otelslog                  | v0.14.0 | v0.15.0 |
| go         | go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp | v0.64.0 | v0.65.0 |
| go         | go.opentelemetry.io/contrib/instrumentation/runtime           | v0.64.0 | v0.65.0 |


Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
WithRouteTag was removed in otelhttp v0.65.0. The intended replacement
(automatic http.route from r.Pattern) doesn't work when wrapping the
whole ServeMux because RequestTraceAttrs runs before routing.

Wrapping individual handlers instead lets ServeMux populate r.Pattern
first, so otelhttp correctly sets the http.route span attribute.
@zeitlinger zeitlinger force-pushed the grafanarenovatebot/opentelemetry-go-contrib-monorepo branch from 1dd6770 to cd34496 Compare February 12, 2026 18:55
@renovate-sh-app renovate-sh-app Bot merged commit e679bbd into main Feb 12, 2026
10 checks passed
@renovate-sh-app renovate-sh-app Bot deleted the grafanarenovatebot/opentelemetry-go-contrib-monorepo branch February 12, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants