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 Adoption Passing Confidence
go.opentelemetry.io/contrib/detectors/gcp v1.34.0 -> v1.35.0 age adoption passing confidence
go.opentelemetry.io/contrib/exporters/autoexport v0.53.0 -> v0.60.0 age adoption passing confidence
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.59.0 -> v0.60.0 age adoption passing confidence
go.opentelemetry.io/contrib/propagators/autoprop v0.53.0 -> v0.60.0 age adoption passing confidence

Release Notes

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

v1.35.0: /v0.60.0/v0.29.0/v0.15.0/v0.10.0/v0.8.0/v0.7.0

Compare Source

Overview

This release is the last to support Go 1.22.
The next release will require at least Go 1.23.

[!WARNING]
This is the last version to use Semantic Conventions v1.20.0 for HTTP libraries
by default. The next version (0.61.0) will default to v1.26.0, and the
following one (0.62.0) will drop support for Semantic Conventions v1.20.0

You can switch to the new Semantic Conventions right now by setting the
OTEL_SEMCONV_STABILITY_OPT_IN=http/dup environment variable in your
application.

See also the HTTP semantic conventions stability
migration

Added
  • Add support for configuring ClientCertificate and ClientKey field for OTLP exporters in go.opentelemetry.io/contrib/config. (#​6378)
  • Add WithAttributeBuilder, AttributeBuilder, DefaultAttributeBuilder, DynamoDBAttributeBuilder, SNSAttributeBuilder to support adding attributes based on SDK input and output in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws. (#​6543)
  • Support for the OTEL_SEMCONV_STABILITY_OPT_IN=http/dup environment variable in go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux to emit attributes for both the v1.20.0 and v1.26.0 semantic conventions. (#​6652)
  • Added the WithMeterProvider option to allow passing a custom meter provider to go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#​6648)
  • Added the WithMetricAttributesFn option to allow setting dynamic, per-request metric attributes in go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#​6648)
  • Added metrics support, and emit all stable metrics from the Semantic Conventions in go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux. (#​6648)
  • Add support for configuring Insecure field for OTLP exporters in go.opentelemetry.io/contrib/config. (#​6658)
  • Support for the OTEL_SEMCONV_STABILITY_OPT_IN=http/dup environment variable in instrumentation/net/http/httptrace/otelhttptrace to emit attributes for both the v1.20.0 and v1.26.0 semantic conventions. (#​6720)
  • Support for the OTEL_SEMCONV_STABILITY_OPT_IN=http/dup environment variable in instrumentation/github.com/emicklei/go-restful/otelrestful to emit attributes for both the v1.20.0 and v1.26.0 semantic conventions. (#​6710)
  • Added metrics support, and emit all stable metrics from the Semantic Conventions in go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin. (#​6747)
  • Support for the OTEL_SEMCONV_STABILITY_OPT_IN=http/dup environment variable in go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin to emit attributes for both the v1.20.0 and v1.26.0 semantic conventions. (#​6778)
  • Support OTEL_SEMCONV_STABILITY_OPT_IN to emit telemetry following both go.opentelemetry.io/otel/semconv/v1.21.0 (default) and go.opentelemetry.io/otel/semconv/v1.26.0 (opt-in) in go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo per the Database semantic convention stability migration guide. (#​6172)
  • Support Go 1.24. (#​6765)
  • Add support for configuring HeadersList field for OTLP exporters in go.opentelemetry.io/contrib/config. (#​6657)
  • Add go.opentelemetry.io/contrib/otelconf module which is a replacement for go.opentelemetry.io/contrib/config. (#​6796)
  • Added WithFallbackLogExporter to allow setting a fallback log exporter when OTEL_LOGS_EXPORTER is unset in go.opentelemetry.io/contrib/exporters/autoexport. (#​6844)
Changed
  • Add custom attribute to the span after execution of the SDK rather than before in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws. (#​6543)
  • The code.function attribute emitted by go.opentelemetry.io/contrib/bridges/otelslog now stores the package path-qualified function name instead of just the function name.
    The code.namespace attribute is no longer added. (#​6870)
  • The code.function attribute emitted by go.opentelemetry.io/contrib/bridges/otelzap now stores the package path-qualified function name instead of just the function name.
    The code.namespace attribute is no longer added. (#​6870)
  • Improve performance by reducing allocations for common request protocols in the modules below. (#​6845)
    • 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
Deprecated
  • Deprecate WithAttributeSetter, AttributeSetter, DefaultAttributeSetter, DynamoDBAttributeSetter, SNSAttributeSetter in favor of WithAttributeBuilder, AttributeBuilder, DefaultAttributeBuilder, DynamoDBAttributeBuilder, SNSAttributeBuilder in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws. (#​6543)
  • Deprecate go.opentelemetry.io/contrib/config module in favor of go.opentelemetry.io/contrib/otelconf. This is the last release of this module. (#​6796)
Fixed
  • Use context.Background() as default context instead of nil in go.opentelemetry.io/contrib/bridges/otellogr. (#​6527)
  • Convert Prometheus histogram buckets to non-cumulative otel histogram buckets in go.opentelemetry.io/contrib/bridges/prometheus. (#​6685)
  • Don't start spans that never end for filtered out gRPC stats handler in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#​6695)
  • Fix a possible nil dereference panic in NewSDK of go.opentelemetry.io/contrib/config/v0.3.0. (#​6752)
  • Fix prometheus endpoint with an IPv6 address in go.opentelemetry.io/contrib/config. (#​6815)

What's Changed


Configuration

📅 Schedule: Branch creation - "* 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
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.

2 participants