Skip to content

Commit

Permalink
Deprecate otellambda (#5642)
Browse files Browse the repository at this point in the history
Towards #5546
  • Loading branch information
MrAlias authored May 23, 2024
1 parent a48eea8 commit a520f28
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@
//
// lambda.Start(<user function>) entrypoint: lambda.Start(otellambda.InstrumentHandler(<user function>))
// lambda.StartHandler(<user Handler>) entrypoint: lambda.StartHandler(otellambda.WrapHandler(<user Handler>))
//
// 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"
Original file line number Diff line number Diff line change
@@ -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`.


Expand Down Expand Up @@ -31,4 +33,4 @@ Note: Because the example runs on AWS Lambda, a handful of resources are created

```sh
./manualAWSCleanup.sh
```
```
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a520f28

Please sign in to comment.