Skip to content

chore(all): update opentelemetry-go-contrib monorepo #5236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Mar 24, 2025

This PR contains the following updates:

Package Change Age Confidence
go.opentelemetry.io/contrib/detectors/gcp v1.34.0 -> v1.37.0 age confidence
go.opentelemetry.io/contrib/exporters/autoexport v0.53.0 -> v0.62.0 age confidence
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 -> v0.62.0 age confidence
go.opentelemetry.io/contrib/propagators/autoprop v0.53.0 -> v0.62.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/detectors/gcp)

v1.37.0: Release 1.37.0/0.62.0/0.31.0/0.17.0/0.12.0/0.10.0/0.9.0

Compare Source

Added
  • Add the WithPublicEndpoint and WithPublicEndpointFn options to go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#​7407)
Changed
  • go.opentelemetry.io/contrib/instrumentation/runtime now produces the new metrics by default. Set OTEL_GO_X_DEPRECATED_RUNTIME_METRICS=true environment variable to additionally produce the deprecated metrics. (#​7418)
  • The semantic conventions have been upgraded from v1.30.0 to v1.34.0 in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#​7361)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/detectors/aws/ec2. (#​7373, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/detectors/aws/eks. (#​7375, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/detectors/aws/ecs. (#​7374, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/detectors/aws/lambda. (#​7376, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/detectors/azure/azurevm. (#​7377, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/bridges/otelslog. (#​7361, #​7484)
  • The semantic conventions have been upgraded from v1.27.0 to v1.34.0 in go.opentelemetry.io/contrib/bridges/otellogr. (#​7387, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/bridges/otelzap. (#​7389, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/detectors/gcp. (#​7378, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful. (#​7383, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#​7383, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#​7383, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace. (#​7383, #​7484)
  • The semantic conventions have been upgraded from v1.26.0 to v1.34.0 in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#​7383, #​7484)
  • The semantic conventions have been upgraded in go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo to v1.34.0. (#​7393, #​7484)
  • The semantic conventions have been upgraded in go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo to v1.34.0. (#​7393, #​7484)
  • The semantic conventions have been upgraded in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws to v1.34.0. (#​7394, #​7484)
    • The messaging.system=AmazonSQS attribute has been corrected to messaging.system=aws.sqs.
    • The net.peer.addr attribute key has been upgraded to server.address.
    • The http.status_code attribute key has been upgraded to http.response.status_code.
    • The db.system=dynamodb attribute has been corrected to db.system.name=aws.dynamodb.
    • The deprecated messaging.operation.type=publish attribute has been corrected to messaging.operation.type=send.
  • The semantic conventions have been upgraded from v1.21.0 to v1.34.0 in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda. (#​7400, #​7484)
  • The semantic conventions in go.opentelemetry.io/contrib/instrumentation/host have been upgraded to v1.34.0. (#​7390, #​7484)
    • The description of process.cpu.time is updated to comply with semantic conventions.
    • process.cpu.time now uses the state attribute instead of cpu.mode.
    • The system.cpu.time metric is renamed to cpu.time.
    • cpu.time now uses the state attribute instead of cpu.mode.
    • system.memory.usage now uses the state attribute instead of system.memory.state.
    • system.memory.utilization now uses the state attribute instead of system.memory.state.
    • The system.memory.state attribute (now state) value of available is now free instead.
Deprecated
  • AttributeCPUTimeUser in go.opentelemetry.io/contrib/instrumentation/host is deprecated.
    Use go.opentelemetry.io/otel/semconv instead. (#​7390)
  • AttributeCPUTimeSystem in go.opentelemetry.io/contrib/instrumentation/host is deprecated.
    Use go.opentelemetry.io/otel/semconv instead. (#​7390)
  • AttributeCPUTimeOther in go.opentelemetry.io/contrib/instrumentation/host is deprecated.
    Use go.opentelemetry.io/otel/semconv instead. (#​7390)
  • AttributeCPUTimeIdle in go.opentelemetry.io/contrib/instrumentation/host is deprecated.
    Use go.opentelemetry.io/otel/semconv instead. (#​7390)
  • AttributeMemoryAvailable in go.opentelemetry.io/contrib/instrumentation/host is deprecated.
    Use go.opentelemetry.io/otel/semconv instead. (#​7390)
  • AttributeMemoryUsed in go.opentelemetry.io/contrib/instrumentation/host is deprecated.
    Use go.opentelemetry.io/otel/semconv instead. (#​7390)
  • AttributeNetworkTransmit in go.opentelemetry.io/contrib/instrumentation/host is deprecated.
    Use go.opentelemetry.io/otel/semconv instead. (#​7390)
  • AttributeNetworkReceive in go.opentelemetry.io/contrib/instrumentation/host is deprecated.
    Use go.opentelemetry.io/otel/semconv instead. (#​7390)
Fixed
  • Fix EKS detector erroring outside of Kubernetes in go.opentelemetry.io/contrib/detectors/aws/eks. (#​7483)
  • Fix data race when writing log entries with context.Context fields in go.opentelemetry.io/contrib/bridges/otelzap. (#​7368)
  • Fix nil pointer dereference when ClientTracer did not have a span in go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace. (#​7464)
  • Record all non-failure metrics on transport round trip errors in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#​7146)
Removed
  • The deprecated StreamServerInterceptor function from go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc is removed. (#​7362)
What's Changed
New Contributors

Full Changelog: open-telemetry/opentelemetry-go-contrib@v1.36.0...v1.37.0

v1.36.0: /v0.61.0/v0.30.0/v0.16.0/v0.11.0/v0.9.0/v0.8.0

Compare Source

Overview

Added
  • http.route attribute to otelhttp server request spans, when net/http.Request.Pattern is set in the modules below. (#​6905, #​6937)
    • go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful
    • go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin
    • go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux
    • go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho
    • go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
  • Add WithAttributes option to set instrumentation scope attributes on the created log.Logger in go.opentelemetry.io/contrib/bridges/otelzap. (#​6962)
  • Add WithAttributes option to set instrumentation scope attributes on the created log.Logger in go.opentelemetry.io/contrib/bridges/otelslog. (#​6965)
  • Add WithAttributes option to set instrumentation scope attributes on the created log.Logger in go.opentelemetry.io/contrib/bridges/otellogrus. (#​6966)
  • Add WithAttributes option to set instrumentation scope attributes on the created log.Logger in go.opentelemetry.io/contrib/bridges/otellogr. (#​6967)
  • Add the WithGinMetricAttributes option to allow setting dynamic, per-request metric attributes based on *gin.Context in go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#​6932)
  • Use Gin's own ClientIP method to detect the client's IP, which supports custom proxy headers in go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#​6095)
  • Added test for Fields in go.opentelemetry.io/contrib/propagators/jaeger. (#​7119)
  • Allow configuring samplers in go.opentelemetry.io/contrib/otelconf. (#​7148)
  • Slog log bridge now sets SeverityText attribute using source value in go.opentelemetry.io/contrib/bridges/otelslog. (#​7198)
  • Add http.route metric attribute in go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#​7275)
  • Add the WithSpanStartOptions option to add custom options to new spans go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#​7261)
  • Add instrumentation support for go.mongodb.org/mongo-driver/v2 in go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo. (#​6539)
  • Rerun the span name formatter after the request ran if a req.Pattern is set, so the span name can include it in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#​7192)
Changed
  • Jaeger remote sampler's probabilistic strategy now uses the same sampling algorithm as trace.TraceIDRatioBased in go.opentelemetry.io/contrib/samplers/jaegerremote. (#​6892)

  • Switched the default for OTEL_SEMCONV_STABILITY_OPT_IN to emit the v1.26.0 semantic conventions by default in the following modules.

    • go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful
    • go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin
    • go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux
    • go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho
    • go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace
    • go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
      The OTEL_SEMCONV_STABILITY_OPT_IN=http/dup environment variable can be still used to emit both the v1.20.0 and v1.26.0 semantic conventions.
      It is however impossible to emit only the 1.20.0 semantic conventions, as the next release will drop support for that environment variable. (#​6899)
  • Improve performance by reducing allocations for http request when using OTEL_SEMCONV_STABILITY_OPT_IN=http/dup in the modules below. (#​7180)

    • go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful
    • go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin
    • go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux
    • go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho
    • go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace
    • go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
  • Update the Jaeger remote sampler to use "github.com/jaegertracing/jaeger-idl/proto-gen/api_v2" in go.opentelemetry.io/contrib/samplers/jaegerremote. (#​7061)

  • Improve performance by reducing allocations in the gRPC stats handler in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#​7186)

  • Update http.route attribute to support request.Pattern in `go.opent


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.

@renovate-bot renovate-bot requested review from a team as code owners March 24, 2025 01:11
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Mar 24, 2025
Copy link

@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.

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!

Summary of Changes

This pull request updates the opentelemetry-go-contrib monorepo, specifically updating several modules. The modules updated include go.opentelemetry.io/contrib/detectors/gcp from v1.34.0 to v1.35.0, go.opentelemetry.io/contrib/exporters/autoexport from v0.53.0 to v0.60.0, go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp from v0.59.0 to v0.60.0, and go.opentelemetry.io/contrib/propagators/autoprop from v0.53.0 to v0.60.0. The updates are reflected in the go.mod files of the affected modules.

Highlights

  • Dependency Updates: The primary focus of this PR is to update the opentelemetry-go-contrib monorepo dependencies to their latest versions.
  • Module Specific Updates: Several go.mod files are updated to reflect the new versions of the opentelemetry related modules.

Changelog

  • opentelemetry/instrumentation/app/go.mod
    • Updated go.opentelemetry.io/contrib/exporters/autoexport from v0.53.0 to v0.60.0.
    • Updated go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp from v0.59.0 to v0.60.0.
    • Updated go.opentelemetry.io/contrib/propagators/autoprop from v0.53.0 to v0.60.0.
  • opentelemetry/trace/go.mod
    • Updated go.opentelemetry.io/contrib/detectors/gcp from v1.34.0 to v1.35.0.
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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

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 issue 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 is currently in preview and 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 to provide feedback.

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.


Trivia time!

What is the primary use case for OpenTelemetry?

Click here for the answer
OpenTelemetry is primarily used for generating and collecting telemetry data (metrics, logs, and traces) from software systems to help understand their performance and behavior.

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

@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 PR updates several OpenTelemetry Go contrib modules. The updates seem straightforward, but I've reviewed the changes to ensure they don't introduce any regressions or compatibility issues.

Merge Readiness

The pull request updates dependencies, and I did not find any critical or high severity issues. I am unable to directly approve the pull request, and users should have others review and approve this code before merging. The pull request appears ready for merging.

@telpirion telpirion self-assigned this Mar 24, 2025
@telpirion telpirion removed their assignment Jul 10, 2025
@glasnt glasnt self-assigned this Jul 15, 2025
@renovate-bot renovate-bot force-pushed the renovate/opentelemetry-go-contrib-monorepo branch from 16b16c5 to 4059356 Compare July 18, 2025 18:34
Copy link

⚠️ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: opentelemetry/instrumentation/app/go.sum
Command failed: install-tool golang 1.21.13

File name: opentelemetry/trace/go.sum
Command failed: install-tool golang 1.21.13

@glasnt glasnt removed their assignment Jul 21, 2025
Copy link

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants