Skip to content

Commit

Permalink
Deprecate the AWS Lambda detector (#5641)
Browse files Browse the repository at this point in the history
Towards #5545
  • Loading branch information
MrAlias authored May 23, 2024
1 parent a31d69e commit a48eea8
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ 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 [#5543]. (#5637)
- The `go.opentelemetry.io/contrib/detectors/aws/eks` package is deprecated.
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)

[#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
[#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
Expand Down
9 changes: 9 additions & 0 deletions detectors/aws/lambda/detector.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0

// Package lambda provide an OpenTelemetry resource detector for AWS Lambda
// instances.
//
// Deprecated: lambda 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/5545
package lambda // import "go.opentelemetry.io/contrib/detectors/aws/lambda"

import (
Expand Down
1 change: 1 addition & 0 deletions detectors/aws/lambda/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Deprecated: lambda has no Code Owner.
module go.opentelemetry.io/contrib/detectors/aws/lambda

go 1.21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ 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"
lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated.
"go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda"
"go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-sdk-go-v2/otelaws"
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/aws/aws-lambda-go/lambdacontext"
"github.com/stretchr/testify/assert"

lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda"
lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated.
"go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda"
"go.opentelemetry.io/contrib/propagators/aws/xray"
"go.opentelemetry.io/otel/attribute"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"context"
"os"

lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda"
lambdadetector "go.opentelemetry.io/contrib/detectors/aws/lambda" // nolint:staticcheck // deprecated.
"go.opentelemetry.io/contrib/instrumentation/github.com/aws/aws-lambda-go/otellambda"
"go.opentelemetry.io/contrib/propagators/aws/xray"
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
Expand Down

0 comments on commit a48eea8

Please sign in to comment.