diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c0e89d2a39..a445ceb8f69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,11 +20,14 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm If you would like to become a Code Owner of this module and prevent it from being removed, see [#5544]. (#5640) - The `go.opentelemetry.io/contrib/detectors/aws/lambda` package is deprecated. If you would like to become a Code Owner of this module and prevent it from being removed, see [#5545]. (#5641) +- The `go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda` package is deprecated. + If you would like to become a Code Owner of this module and prevent it from being removed, see [#5546]. (#5642) [#5542]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5542 [#5543]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5543 [#5544]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5544 [#5545]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5545 +[#5546]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5546 [#5551]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5551 ## [1.27.0/0.52.0/0.21.0/0.7.0/0.2.0] - 2024-05-21 diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/doc.go b/instrumentation/github.com/aws/aws-lambda-go/otellambda/doc.go index 217361ff4da..984d08dccfb 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/doc.go +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/doc.go @@ -8,4 +8,11 @@ // // lambda.Start() entrypoint: lambda.Start(otellambda.InstrumentHandler()) // lambda.StartHandler() entrypoint: lambda.StartHandler(otellambda.WrapHandler()) +// +// Deprecated: otellambda has no Code Owner. +// After August 21, 2024, it may no longer be supported and may stop +// receiving new releases unless a new Code Owner is found. See +// [this issue] if you would like to become the Code Owner of this module. +// +// [this issue]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5546 package otellambda // import "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda" diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/README.md b/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/README.md index 24fa6355bb0..8869b2e55fe 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/README.md +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/README.md @@ -1,5 +1,7 @@ # aws/aws-lambda-go instrumentation example +:warning: Deprecated: otellambda has no Code Owner. + A simple example to demonstrate the AWS Lambda for Go instrumentation. In this example, container `aws-lambda-client` initializes an S3 client and an HTTP client and runs 2 basic operations: `listS3Buckets` and `GET`. @@ -31,4 +33,4 @@ Note: Because the example runs on AWS Lambda, a handful of resources are created ```sh ./manualAWSCleanup.sh -``` \ No newline at end of file +``` diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/go.mod b/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/go.mod index 3a6a4db88c1..b731d029248 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/go.mod +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/go.mod @@ -1,3 +1,4 @@ +// Deprecated: otellambda has no Code Owner. module go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda/example go 1.21 diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/main.go b/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/main.go index 35d11522ebe..a9fa97f41a5 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/main.go +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/example/main.go @@ -14,8 +14,8 @@ import ( awsConfig "github.com/aws/aws-sdk-go-v2/config" "github.com/aws/aws-sdk-go-v2/service/s3" - lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated. - "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda" + lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated. + "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda" // nolint:staticcheck // deprecated. "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws" "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp" "go.opentelemetry.io/otel" diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/go.mod b/instrumentation/github.com/aws/aws-lambda-go/otellambda/go.mod index 60263bd0d55..5bb3bdeadb4 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/go.mod +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/go.mod @@ -1,3 +1,4 @@ +// Deprecated: otellambda has no Code Owner. module go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda go 1.21 diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/doc.go b/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/doc.go index b2d0819bf0d..fb89b7f6eb9 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/doc.go +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/doc.go @@ -6,5 +6,12 @@ Package test validates AWS Lambda instrumentation with the default SDK. This package is in a separate module from the instrumentation it tests to isolate the dependency of the default SDK and not impose this as a transitive dependency for users. + +Deprecated: otellambda has no Code Owner. +After August 21, 2024, it may no longer be supported and may stop +receiving new releases unless a new Code Owner is found. See +[this issue] if you would like to become the Code Owner of this module. + +[this issue]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5546 */ package test // import "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda/test" diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/go.mod b/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/go.mod index 24b4bb7dec3..a46f92b68bf 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/go.mod +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/go.mod @@ -1,3 +1,4 @@ +// Deprecated: otellambda has no Code Owner. module go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda/test go 1.21 diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/lambda_test.go b/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/lambda_test.go index c814f80a2fe..3b00fb8b091 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/lambda_test.go +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/test/lambda_test.go @@ -19,8 +19,8 @@ import ( "github.com/aws/aws-lambda-go/lambdacontext" "github.com/stretchr/testify/assert" - lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated. - "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda" + lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated. + "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda" // nolint:staticcheck // deprecated. "go.opentelemetry.io/contrib/propagators/aws/xray" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/propagation" diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/README.md b/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/README.md index 18ae68d3322..a22a75c1883 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/README.md +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/README.md @@ -3,6 +3,8 @@ [![Go Reference][goref-image]][goref-url] [![Apache License][license-image]][license-url] +:warning: Deprecated: otellambda has no Code Owner. + This module provides recommended configuration options for [`AWS Lambda Instrumentation`](https://github.com/open-telemetry/opentelemetry-go-contrib/tree/main/instrumentation/github.com/aws/aws-lambda-go/otellambda) when using [AWS X-Ray](https://aws.amazon.com/xray/). By using this configuration, trace context will automatically be extracted from incoming requests with the `X-Amzn-Trace-Id` header if present. Trace context will also always be injected using the `X-Amzn-Trace-Id` format into downstream requests from the Lambda function. ## Installation diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/go.mod b/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/go.mod index 353bae61184..ccc42ac8f19 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/go.mod +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/go.mod @@ -1,3 +1,4 @@ +// Deprecated: otellambda has no Code Owner. module go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig go 1.21 diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/xrayconfig.go b/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/xrayconfig.go index 314d25c87a8..d610709908e 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/xrayconfig.go +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/xrayconfig.go @@ -1,14 +1,22 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 +// Package xrayconfig provides configuration for the otellambda package. +// +// Deprecated: otellambda has no Code Owner. +// After August 21, 2024, it may no longer be supported and may stop +// receiving new releases unless a new Code Owner is found. See +// [this issue] if you would like to become the Code Owner of this module. +// +// [this issue]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5546 package xrayconfig // import "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig" import ( "context" "os" - lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated. - "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda" + lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated. + "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda" // nolint:staticcheck // deprecated. "go.opentelemetry.io/contrib/propagators/aws/xray" "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc" "go.opentelemetry.io/otel/propagation" diff --git a/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/xrayconfig_test.go b/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/xrayconfig_test.go index ac9f7dd3e95..d7235e4510e 100644 --- a/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/xrayconfig_test.go +++ b/instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/xrayconfig_test.go @@ -14,7 +14,7 @@ import ( "github.com/aws/aws-lambda-go/lambdacontext" "github.com/stretchr/testify/assert" - "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda" + "go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda" // nolint:staticcheck // deprecated. "go.opentelemetry.io/contrib/propagators/aws/xray" "go.opentelemetry.io/otel/propagation" "go.opentelemetry.io/otel/trace"