From 871e68b4ee259349323611f17c38fff05298f05b Mon Sep 17 00:00:00 2001 From: arshukla98 Date: Mon, 7 Apr 2025 14:03:06 +0530 Subject: [PATCH] Remove SemVersion from instrumentation/net/http/otelhttp (Closes #7029) --- CHANGELOG.md | 1 + instrumentation/net/http/otelhttp/version.go | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c7ae5a018cf..9caf111b17b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,6 +62,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - The deprecated `SemVersion` function is removed in `go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws`, use `Version` function instead. (#7154) - The deprecated `DefaultAttributeSetter` in `go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws` is removed, use the `DefaultAttributeBuilder` function instead. (#7127) - The deprecated `UnaryClientInterceptor` function is removed in `go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc` use `NewClientHandler` function instead. (#7125) +- The deprecated `SemVersion` function is removed in `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp`, use `Version` function instead. (#7167) diff --git a/instrumentation/net/http/otelhttp/version.go b/instrumentation/net/http/otelhttp/version.go index 1ec9a00c7a4..808e7535335 100644 --- a/instrumentation/net/http/otelhttp/version.go +++ b/instrumentation/net/http/otelhttp/version.go @@ -8,10 +8,3 @@ func Version() string { return "0.60.0" // This string is updated by the pre_release.sh script during release } - -// SemVersion is the semantic version to be supplied to tracer/meter creation. -// -// Deprecated: Use [Version] instead. -func SemVersion() string { - return Version() -}