diff --git a/CHANGELOG.md b/CHANGELOG.md index 2eed3817117..fb0ef7d8243 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - The deprecated `SNSAttributeSetter` function is removed in `go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws`, use `SNSAttributeBuilder` function instead. (#7136) - The deprecated `AttributeSetter` function is removed in `go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws`, use the `AttributeBuilder` function instead. (#7137) - 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) diff --git a/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/attributes.go b/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/attributes.go index fdb63fe4edb..874d7033b2a 100644 --- a/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/attributes.go +++ b/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/attributes.go @@ -54,14 +54,6 @@ func RequestIDAttr(requestID string) attribute.KeyValue { return RequestIDKey.String(requestID) } -// DefaultAttributeSetter checks to see if there are service specific attributes available to set for the AWS service. -// If there are service specific attributes available then they will be included. -// -// Deprecated: Use DefaultAttributeBuilder instead. This will be removed in a future release. -func DefaultAttributeSetter(ctx context.Context, in middleware.InitializeInput) []attribute.KeyValue { - return DefaultAttributeBuilder(ctx, in, middleware.InitializeOutput{}) -} - // DefaultAttributeBuilder checks to see if there are service specific attributes available to set for the AWS service. // If there are service specific attributes available then they will be included. func DefaultAttributeBuilder(ctx context.Context, in middleware.InitializeInput, out middleware.InitializeOutput) []attribute.KeyValue {