Skip to content

Conversation

@renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Dec 1, 2025

Note: This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
go.opentelemetry.io/contrib/detectors/gcp v1.36.0 -> v1.39.0 age confidence
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0 -> v0.64.0 age confidence
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 -> v0.64.0 age confidence

Release Notes

open-telemetry/opentelemetry-go-contrib (go.opentelemetry.io/contrib/detectors/gcp)

v1.39.0: /v2.1.0/v0.64.0/v0.33.0/v0.19.0/v0.14.0/v0.12.0/v0.11.0

Compare Source

Overview

Added
  • ParseYAML in go.opentelemetry.io/contrib/otelconf now supports environment variables substitution in the format ${[env:]VAR_NAME[:-defaultvalue]}. (#​6215)
  • Add the http.route metric attribute to go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#​7966)
  • Support db.client.operation.duration metric for go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo. (#​7983)
  • Add a WithSpanNameFormatter option to go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo. (#​7986)
  • WithOnError option for otelecho middleware in go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho to specify the behavior when an error occurs. (#​8025)
  • Updated go.opentelemetry.io/contrib/otelconf to include the v1.0.0-rc2 release candidate of schema which includes backwards incompatible changes. (#​8026)
  • Introduce v1.0.0-rc.2 model in go.opentelemetry.io/contrib/otelconf. (#​8031)
  • Add unmarshaling and validation for CardinalityLimits and SpanLimits to v1.0.0 model in go.opentelemetry.io/contrib/otelconf. (#​8043)
  • Add unmarshaling and validation for BatchLogRecordProcessor, BatchSpanProcessor, and PeriodicMetricReader to v1.0.0 model in go.opentelemetry.io/contrib/otelconf. (#​8049)
  • Add unmarshaling and validation for TextMapPropagator to v1.0.0 model in go.opentelemetry.io/contrib/otelconf. (#​8052)
  • Add jaeger.sampler.type/jaeger.sampler.param attributes for adaptive sampling support and option WithAttributesDisabled in go.opentelemetry.io/contrib/samplers/jaegerremote. (#​8073)
  • Add support for OTEL_EXPERIMENTAL_CONFIG_FILE via the NewSDK function in go.opentelemetry.io/contrib/otelconf (#​8106)
  • Add unmarshaling and validation for OTLPHttpExporter, OTLPGrpcExporter, OTLPGrpcMetricExporter and OTLPHttpMetricExporter to v1.0.0 model in go.opentelemetry.io/contrib/otelconf. (#​8112)
  • Add unmarshaling and validation for AttributeType, AttributeNameValue, SimpleSpanProcessor, SimpleLogRecordProcessor, ZipkinSpanExporter, NameStringValuePair, InstrumentType, ExperimentalPeerInstrumentationServiceMappingElem, ExporterDefaultHistogramAggregation, PullMetricReader to v1.0.0 model in go.opentelemetry.io/contrib/otelconf. (#​8127)
  • Add support for container, host, process resource detectors in go.opentelemetry.io/contrib/otelconf. (#​8180)
Changed
  • Improve performance by reducing allocations in the gRPC stats handler in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#​8035)
  • Export the ReadEvents and WriteEvents constants in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp so they can be used in WithMessageEvents. (#​8153)
  • Switched the default for OTEL_SEMCONV_STABILITY_OPT_IN to emit the v1.37.0 semantic conventions by default in go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo. Use the environment variable OTEL_SEMCONV_STABILITY_OPT_IN to configure duplication with old semantic conventions if needed (i.e. OTEL_SEMCONV_STABILITY_OPT_IN="database/dup"). (#​8230)
Deprecated
  • WithRouteTag in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp is deprecated. The route is already added automatically for spans. For metrics, the alternative is to use the WithMetricAttributesFn option. (#​8117)
  • WithPublicEndpoint in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp is deprecated. Use WithPublicEndpointFn instead. (#​8152)
  • DefaultClient, Get, Head, Post, and PostForm in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp are deprecated. Use a custom *http.Client with otelhttp.NewTransport(http.DefaultTransport) instead. (#​8140, #​8201)
Removed
  • Drop support for Go 1.23. (#​7831)
  • Remove deprecated go.opentelemetry.io/contrib/detectors/aws/ec2 module, please use go.opentelemetry.io/contrib/detectors/aws/ec2/v2 instead. (#​7841)
  • Remove the deprecated Extract and Inject functions from go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#​7952)

What's Changed


Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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

This PR was generated by Mend Renovate. View the repository job log.

@forking-renovate
Copy link

forking-renovate bot commented Dec 1, 2025

ℹ Artifact update notice

File name: auth/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 8 additional dependencies were updated

Details:

Package Change
google.golang.org/grpc v1.76.0 -> v1.77.0
go.opentelemetry.io/auto/sdk v1.1.0 -> v1.2.1
go.opentelemetry.io/otel v1.37.0 -> v1.39.0
go.opentelemetry.io/otel/metric v1.37.0 -> v1.39.0
go.opentelemetry.io/otel/trace v1.37.0 -> v1.39.0
golang.org/x/oauth2 v0.30.0 -> v0.32.0
golang.org/x/sys v0.38.0 -> v0.39.0
google.golang.org/genproto/googleapis/rpc v0.0.0-20250804133106-a7a43d27e69b -> v0.0.0-20251202230838-ff82c1b0f217
File name: bigtable/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 7 additional dependencies were updated

Details:

Package Change
go.opentelemetry.io/otel v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/metric v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/sdk v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/sdk/metric v1.38.0 -> v1.39.0
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 -> v1.30.0
go.opentelemetry.io/otel/trace v1.38.0 -> v1.39.0
golang.org/x/sys v0.37.0 -> v0.39.0
File name: spanner/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 8 additional dependencies were updated

Details:

Package Change
go.opentelemetry.io/otel v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/metric v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/sdk v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/sdk/metric v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/trace v1.38.0 -> v1.39.0
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 -> v1.30.0
go.opentelemetry.io/auto/sdk v1.1.0 -> v1.2.1
golang.org/x/sys v0.37.0 -> v0.39.0
File name: spanner/test/opentelemetry/test/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 18 additional dependencies were updated

Details:

Package Change
go.opentelemetry.io/otel v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/sdk v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/sdk/metric v1.38.0 -> v1.39.0
google.golang.org/grpc v1.76.0 -> v1.77.0
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 -> v1.30.0
github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443 -> v0.0.0-20251022180443-0feb69152e9f
github.com/envoyproxy/go-control-plane/envoy v1.32.4 -> v1.35.0
github.com/go-jose/go-jose/v4 v4.1.2 -> v4.1.3
github.com/spiffe/go-spiffe/v2 v2.5.0 -> v2.6.0
go.opentelemetry.io/auto/sdk v1.1.0 -> v1.2.1
go.opentelemetry.io/contrib/detectors/gcp v1.36.0 -> v1.39.0
go.opentelemetry.io/otel/metric v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/trace v1.38.0 -> v1.39.0
golang.org/x/crypto v0.43.0 -> v0.44.0
golang.org/x/net v0.46.0 -> v0.47.0
golang.org/x/sys v0.37.0 -> v0.39.0
golang.org/x/text v0.30.0 -> v0.31.0
google.golang.org/genproto/googleapis/rpc v0.0.0-20251111163417-95abcf5c77ba -> v0.0.0-20251202230838-ff82c1b0f217
File name: storage/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 7 additional dependencies were updated

Details:

Package Change
go.opentelemetry.io/otel v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/sdk v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/sdk/metric v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/trace v1.38.0 -> v1.39.0
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 -> v1.30.0
go.opentelemetry.io/otel/metric v1.38.0 -> v1.39.0
golang.org/x/sys v0.37.0 -> v0.39.0
File name: storage/internal/benchmarks/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 7 additional dependencies were updated

Details:

Package Change
go.opentelemetry.io/otel v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/sdk v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/trace v1.38.0 -> v1.39.0
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.29.0 -> v1.30.0
go.opentelemetry.io/otel/metric v1.38.0 -> v1.39.0
go.opentelemetry.io/otel/sdk/metric v1.38.0 -> v1.39.0
golang.org/x/sys v0.38.0 -> v0.39.0

@renovate-bot renovate-bot requested review from a team as code owners December 1, 2025 01:45
@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 1, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 1, 2025
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @renovate-bot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the project's dependencies on the opentelemetry-go-contrib monorepo, specifically upgrading the GCP detector, gRPC instrumentation, and HTTP instrumentation modules. These updates bring in the latest features, performance improvements, and bug fixes from the OpenTelemetry Go Contrib project, including new AWS EC2 detector versions, an auto-detection package for resources, and deprecations of older APIs. The changes ensure compatibility with newer Go versions and align with the latest OpenTelemetry semantic conventions.

Highlights

  • OpenTelemetry Go Contrib Updates: The pull request updates several OpenTelemetry Go Contrib modules to their latest versions. Specifically, go.opentelemetry.io/contrib/detectors/gcp is updated from v1.36.0 to v1.38.0, and go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc and go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp are updated from v0.61.0 to v0.63.0.
  • New Features and Enhancements: The v1.38.0 release of open-telemetry/opentelemetry-go-contrib introduces a v2 version of the AWS EC2 detector, a new detectors/autodetect package for composing resource detectors, and options for passing custom configurations to providers in otelconf. It also adds HTTP server metrics support for otelecho instrumentation.
  • Deprecations and Removals: Several components have been deprecated or removed. WithSpanOptions, Extract, and Inject functions in otelgrpc are deprecated, as is the detectors/aws/ec2 package (in favor of its v2 counterpart). Support for the OTEL_SEMCONV_STABILITY_OPT_IN environment variable and semantic conventions v1.20.0 has been removed from various HTTP instrumentation packages, along with the deprecated StreamClientInterceptor from otelgrpc.
  • Go Version Support: This release marks the final one to support Go 1.23, with subsequent releases requiring Go 1.24 or newer. Additionally, it includes support for testing with Go 1.25.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates several opentelemetry-go-contrib dependencies across various modules. The updates to go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc and go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp are the most significant. The otelgrpc update to v0.63.0 is a breaking change as it removes the StreamClientInterceptor function. It also deprecates WithSpanOptions, Extract, and Inject. The otelhttp update removes support for the OTEL_SEMCONV_STABILITY_OPT_IN environment variable. I've added comments to the relevant go.mod files highlighting these changes. Please ensure the codebase is updated to reflect these changes to avoid build failures or unexpected behavior. The other dependency updates appear to be non-breaking.

auth/go.mod Outdated
Comment on lines 11 to 12
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.63.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.63.0
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The update to go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to v0.63.0 is a breaking change. The StreamClientInterceptor function has been removed. If this function is used in the auth module, the build will fail. The following functions are also now deprecated and should be replaced:

  • WithSpanOptions
  • Extract
  • Inject

Additionally, the update to go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp to v0.63.0 removes support for the OTEL_SEMCONV_STABILITY_OPT_IN environment variable, which may alter behavior if it was being used for configuration.

require (
cloud.google.com/go/spanner v1.86.1
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.63.0
Copy link
Contributor

Choose a reason for hiding this comment

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

high

This update to v0.63.0 of go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc includes a breaking change: the StreamClientInterceptor function has been removed. This may cause these tests to fail if they rely on this function. This version also deprecates WithSpanOptions, Extract, and Inject.

@renovate-bot renovate-bot force-pushed the renovate/opentelemetry-go-contrib-monorepo branch from 814f344 to c6526a1 Compare December 8, 2025 21:10
@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 8, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 8, 2025
@renovate-bot renovate-bot force-pushed the renovate/opentelemetry-go-contrib-monorepo branch from c6526a1 to e9de870 Compare December 9, 2025 04:16
@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 9, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 9, 2025
@bhshkh
Copy link
Contributor

bhshkh commented Dec 10, 2025

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates several OpenTelemetry Go Contrib dependencies across multiple modules. The most significant changes are the upgrade of otelgrpc to v0.64.0 and otelhttp to v0.64.0. The otelgrpc update includes a breaking change with the removal of the Extract and Inject functions. The otelhttp update introduces several deprecations. Please review the specific comments for details on these changes to ensure a smooth upgrade.

github.com/googleapis/gax-go/v2 v2.15.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The update to v0.64.0 of otelgrpc removes the Extract and Inject functions, which were deprecated in v0.42.0. This is a breaking change if the project is still using these functions. The recommended migration is to use a propagation.TextMapPropagator directly.

go.opentelemetry.io/otel v1.38.0
go.opentelemetry.io/otel/sdk v1.38.0
go.opentelemetry.io/otel/sdk/metric v1.38.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The update to v0.64.0 of otelgrpc removes the Extract and Inject functions, which were deprecated in v0.42.0. This is a breaking change if this test module is still using these functions. The recommended migration is to use a propagation.TextMapPropagator directly.

go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.64.0
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This update to v0.64.0 of otelhttp deprecates several functions:

  • WithRouteTag: The route is now added automatically to spans.
  • WithPublicEndpoint: Use WithPublicEndpointFn instead.
  • DefaultClient, Get, Head, Post, PostForm: Use a custom *http.Client with otelhttp.NewTransport(http.DefaultTransport) instead.

While not a breaking change, it is recommended to plan for migration away from these deprecated APIs to avoid issues in future upgrades.

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.

3 participants