Skip to content

Commit a48eea8

Browse files
authored
Deprecate the AWS Lambda detector (#5641)
Towards #5545
1 parent a31d69e commit a48eea8

File tree

6 files changed

+16
-3
lines changed

6 files changed

+16
-3
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1818
If you would like to become a Code Owner of this module and prevent it from being removed, see [#5543]. (#5637)
1919
- The `go.opentelemetry.io/contrib/detectors/aws/eks` package is deprecated.
2020
If you would like to become a Code Owner of this module and prevent it from being removed, see [#5544]. (#5640)
21+
- The `go.opentelemetry.io/contrib/detectors/aws/lambda` package is deprecated.
22+
If you would like to become a Code Owner of this module and prevent it from being removed, see [#5545]. (#5641)
2123

2224
[#5542]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5542
2325
[#5543]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5543
2426
[#5544]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5544
27+
[#5545]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5545
2528
[#5551]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5551
2629

2730
## [1.27.0/0.52.0/0.21.0/0.7.0/0.2.0] - 2024-05-21

detectors/aws/lambda/detector.go

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
// Copyright The OpenTelemetry Authors
22
// SPDX-License-Identifier: Apache-2.0
33

4+
// Package lambda provide an OpenTelemetry resource detector for AWS Lambda
5+
// instances.
6+
//
7+
// Deprecated: lambda has no Code Owner.
8+
// After August 21, 2024, it may no longer be supported and may stop
9+
// receiving new releases unless a new Code Owner is found. See
10+
// [this issue] if you would like to become the Code Owner of this module.
11+
//
12+
// [this issue]: https://github.com/open-telemetry/opentelemetry-go-contrib/issues/5545
413
package lambda // import "go.opentelemetry.io/contrib/detectors/aws/lambda"
514

615
import (

detectors/aws/lambda/go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Deprecated: lambda has no Code Owner.
12
module go.opentelemetry.io/contrib/detectors/aws/lambda
23

34
go 1.21

instrumentation/github.com/aws/aws-lambda-go/otellambda/example/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
awsConfig "github.com/aws/aws-sdk-go-v2/config"
1515
"github.com/aws/aws-sdk-go-v2/service/s3"
1616

17-
lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda"
17+
lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated.
1818
"go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda"
1919
"go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws"
2020
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"

instrumentation/github.com/aws/aws-lambda-go/otellambda/test/lambda_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"github.com/aws/aws-lambda-go/lambdacontext"
2020
"github.com/stretchr/testify/assert"
2121

22-
lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda"
22+
lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated.
2323
"go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda"
2424
"go.opentelemetry.io/contrib/propagators/aws/xray"
2525
"go.opentelemetry.io/otel/attribute"

instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/xrayconfig.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"context"
88
"os"
99

10-
lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda"
10+
lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated.
1111
"go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda"
1212
"go.opentelemetry.io/contrib/propagators/aws/xray"
1313
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"

0 commit comments

Comments
 (0)