Skip to content

Commit c5d30f0

Browse files
Change the docs to use the upstream collector lambda layer
1 parent 54b8845 commit c5d30f0

File tree

1 file changed

+10
-4
lines changed
  • docs/apm/traces/get-started-transaction-tracing/opentelemetry-instrumentation/aws-lambda

1 file changed

+10
-4
lines changed

docs/apm/traces/get-started-transaction-tracing/opentelemetry-instrumentation/aws-lambda/dotnet.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ You'll need the following:
5252
* .NET 6 SDK
5353
* Sumo Logic OTLP endpoint URL
5454

55-
### Build your OpenTelemetry Collector Lambda layer
55+
### Configure the Collector Lambda layer
5656

57-
At the moment users have to build Collector Lambda layer by themselves, we may provide a collector Lambda layer in the future.
57+
Use the following upstream [collector lambda layer](https://github.com/open-telemetry/opentelemetry-lambda/tree/main?tab=readme-ov-file#latest-layer-versions)
5858

59-
* Download a local copy of the [opentelemetry-lambda repository from Github](https://github.com/open-telemetry/opentelemetry-lambda).
59+
* `arn:aws:lambda:<region>:184161586896:layer:opentelemetry-collector-<amd64|arm64>-<version>:1`
60+
61+
By default, OpenTelemetry Collector Lambda layer exports telemetry data to AWS backends. To customize the collector configuration, add a collector.yaml to your function and specify its location via the `OPENTELEMETRY_COLLECTOR_CONFIG_URI` environment file
6062

6163
* Configure the collector layer to send data to SumoLogic:
6264

@@ -89,7 +91,11 @@ At the moment users have to build Collector Lambda layer by themselves, we may p
8991
|----------|-------|---------|
9092
| `SUMO_LOGIC_OTLP_ENDPOINT` | `https://your-endpoint.sumologic.net/receiver/v1/otlp/YOUR_TOKEN/v1/traces` | Sumo Logic endpoint |
9193

92-
* Run command: `cd collector && make publish-layer` to publish OpenTelemetry Collector Lambda layer in your AWS account and get its ARN
94+
Once the file has been deployed with a Lambda, configuring the `OPENTELEMETRY_COLLECTOR_CONFIG_URI` will tell the OpenTelemetry extension where to find the collector configuration:
95+
96+
```bash
97+
aws lambda update-function-configuration --function-name Function --environment Variables={OPENTELEMETRY_COLLECTOR_CONFIG_URI=/var/task/collector.yaml}
98+
```
9399

94100
### Configure the lambda function
95101

0 commit comments

Comments
 (0)