Skip to content

chore(all): update opentelemetry-go-contrib monorepo (main) - abandoned#13876

Open
renovate-bot wants to merge 4 commits intogoogleapis:mainfrom
renovate-bot:renovate/opentelemetry-go-contrib-monorepo
Open

chore(all): update opentelemetry-go-contrib monorepo (main) - abandoned#13876
renovate-bot wants to merge 4 commits intogoogleapis:mainfrom
renovate-bot:renovate/opentelemetry-go-contrib-monorepo

Conversation

@renovate-bot
Copy link
Contributor

ℹ️ 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.38.0v1.40.0 age confidence
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.63.0v0.65.0 age confidence
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.61.0v0.65.0 age confidence
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0v0.65.0 age confidence

Release Notes

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

v1.40.0: /v2.2.0/v0.65.0/v0.34.0/v0.20.0/v0.15.0/v0.13.0/v0.12.0

Compare Source

Overview

Added
  • WithMetricAttributesFn option in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc to define dynamic attributes on auto-instrumented metrics. (#​8191)
  • Add support for configuring propagators in go.opentelemetry.io/contrib/otelconf. (#​8281)
  • Add const Version in go.opentelemetry.io/contrib/bridges/prometheus. (#​8401)
  • Add const Version in go.opentelemetry.io/contrib/otelconf. (#​8461)
  • Add const Version in go.opentelemetry.io/contrib/bridges/otellogr. (#​8477)
  • Add const Version in go.opentelemetry.io/contrib/bridges/otellogrus. (#​8485)
  • Add const Version in go.opentelemetry.io/contrib/bridges/otelslog. (#​8480)
Fixed
  • Fix panic when passing nil TracerProvider or MeterProvider to WithTracerProvider or WithMeterProvider in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc. (#​8323)
  • Transport in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp now supports reading request body multiple times for subsequent requests that reuse http.Request. (#​8352)
Changed
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp has been replaced by const Version. (#​8142)
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace has been replaced by const Version. (#​8302)
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc has been replaced by const Version. (#​8317)
  • The Version() function in go.opentelemetry.io/contrib/zpages has been replaced by const Version. (#​8325)
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo has been replaced by const Version. (#​8340)
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin has been replaced by const Version. (#​8341)
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/runtime has been replaced by const Version string. (#​8349)
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws has been replaced by const Version. (#​8356)
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda has been replaced by const Version. (#​8357)
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/host has been replaced by const Version. (#​8358)
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful has been replaced by const Version. (#​8360)
  • The Version() function in go.opentelemetry.io/contrib/propagators/opencensus has been replaced by const Version. (#​8361)
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho has been replaced by const Version. (#​8365)
  • The Version() function in go.opentelemetry.io/contrib/samplers/probability/consistent has been replaced by const Version. (#​8366)
  • The Version() function in go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver/v2/mongo/otelmongo has been replaced by const Version. (#​8370)
  • Set error.type attribute instead of adding exception span events in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. (#​8386)
  • Set error.type attribute instead of adding exception span events in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws. (#​8386)
  • Upgrade go.opentelemetry.io/otel/semconv to v1.39.0, including updates across all instrumentation and detector modules. (#​8404)
    • The semantic conventions v1.39.0 release introduces breaking changes, including:

      • rpc span and metric attributes have been renamed to align with naming guidelines:
        • rpc.systemrpc.system.name (values: grpc, grpc_web, connectrpc, thrift, dubbo, etc.)
        • rpc.method and rpc.service have been merged into a fully-qualified rpc.method attribute
        • rpc.client|server.durationrpc.client|server.call.duration (unit changed to seconds)
        • rpc.grpc.request.metadata/rpc.grpc.response.metadatarpc.request.metadata/rpc.response.metadata
        • rpc.grpc.status_code → deprecated in favor of rpc.response.status_code
        • rpc.jsonrpc.request_idjsonrpc.request.id
        • rpc.jsonrpc.versionjsonrpc.protocol.version
      • system and process metrics:
        • *.linux.memory metrics renamed to *.memory.linux
        • system.process.statusprocess.state
        • system.paging.type and process.paging.fault_typesystem.paging.fault.type
      • peer.service attribute has been deprecated in favor of service.peer.name

      See semantic-conventions v1.39.0 release and v1.38.0 release for complete breaking change details.

    • Updated modules include:

      • go.opentelemetry.io/contrib/bridges/otellogr
      • go.opentelemetry.io/contrib/bridges/otellogrus
      • go.opentelemetry.io/contrib/bridges/otelslog
      • go.opentelemetry.io/contrib/bridges/otelzap
      • go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
        • Uses service.peer.name attribute (deprecated peer.service)
      • go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace
      • go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
        • Merged rpc.method and rpc.service into fully-qualified rpc.method (e.g., grpc.testing.TestService/EmptyCall)
        • rpc.systemrpc.system.name with updated values (e.g., RPCSystemNameGRPC)
        • rpc.grpc.status_coderpc.response.status_code (e.g., RPCResponseStatusCode("OK"))
      • go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws
        • Merged rpc.method and rpc.service attributes (service/operation → fully-qualified method)
        • rpc.systemrpc.system.name with AWSSystemVal
        • New MethodAttr() function for combined service/operation attribute
      • go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda
      • go.opentelemetry.io/contrib/instrumentation/runtime
      • go.opentelemetry.io/contrib/instrumentation/host
      • go.opentelemetry.io/contrib/instrumentation/go.mongodb.org/mongo-driver (both v1 and v2)
      • go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin
      • go.opentelemetry.io/contrib/instrumentation/github.com/emicklei/go-restful/otelrestful
      • go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho
      • go.opentelemetry.io/contrib/instrumentation/github.com/gorilla/mux/otelmux
      • go.opentelemetry.io/contrib/detectors/gcp
      • go.opentelemetry.io/contrib/detectors/aws/ec2/v2
      • go.opentelemetry.io/contrib/detectors/aws/ecs
      • go.opentelemetry.io/contrib/detectors/aws/eks
      • go.opentelemetry.io/contrib/detectors/azure/azurevm
      • go.opentelemetry.io/contrib/otelconf
Deprecated
  • ServiceAttr() function in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws is deprecated. Use MethodAttr() instead, as rpc.service has been merged into rpc.method in semantic conventions v1.39.0. (#​8404)
  • OperationAttr() function in go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws is deprecated. Use MethodAttr() instead, as rpc.service has been merged into rpc.method in semantic conventions v1.39.0. (#​8404)
Removed
  • The deprecated DefaultClient, Get, Head, Post, and PostForm in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. Use a custom *http.Client with otelhttp.NewTransport(http.DefaultTransport) instead. (#​8266)
  • The deprecated WithPublicEndpoint in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. Use WithPublicEndpointFn instead. (#​8267)
  • The deprecated WithRouteTag in go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp. The route is already added automatically for spans. For metrics, the alternative is to use the WithMetricAttributesFn option. (#​8268)

What's Changed

New Contributors

Full Changelog: open-telemetry/opentelemetry-go-contrib@v1.39.0...v1.40.0

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/labsta

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 February 23, 2026 01:05
@renovate-bot renovate-bot requested a review from a team February 23, 2026 01:05
@renovate-bot renovate-bot requested a review from a team as a code owner February 23, 2026 01:05
@renovate-bot renovate-bot changed the title chore(all): update opentelemetry-go-contrib monorepo (main) chore(all): update opentelemetry-go-contrib monorepo (main) - abandoned Feb 23, 2026
@forking-renovate
Copy link

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Feb 23, 2026
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 dependencies, most notably opentelemetry-go-contrib. The code change in spanner/test/opentelemetry/test/ot_traces_test.go correctly migrates from a deprecated OpenTelemetry gRPC interceptor to the new stats handler API. However, this change introduces a potential for duplicated trace spans for unary RPCs. I've added a comment asking for clarification on the test's sensitivity to span count, as duplicated spans might not be an issue if the test only asserts existence.

MinOpened: minOpened,
},
}, option.WithGRPCDialOption(grpc.WithStreamInterceptor(otelgrpc.StreamClientInterceptor(otelgrpc.WithTracerProvider(te.tp)))))
}, option.WithGRPCDialOption(grpc.WithStatsHandler(otelgrpc.NewClientHandler(otelgrpc.WithTracerProvider(te.tp)))))
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 change correctly migrates from the deprecated StreamClientInterceptor to NewClientHandler. However, NewClientHandler instruments both unary and streaming calls. A co-existing otelgrpc.UnaryClientInterceptor for this client will lead to duplicated spans for unary calls. Please confirm if this test is sensitive to the total count of spans. If the test only asserts the existence of specific spans and is not sensitive to the total count, then these duplicated spans might not be an issue, and the otelgrpc.UnaryClientInterceptor might not need to be removed.

References
  1. For OpenTelemetry trace testing, do not filter spans if the test only asserts the existence of specific spans and is not sensitive to the total count.

@forking-renovate
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

kokoro:force-run Add this label to force Kokoro to re-run the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants