Skip to content

Commit e35ab7a

Browse files
Reorganizing content under lambda configuration
1 parent 240fae1 commit e35ab7a

File tree

1 file changed

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

1 file changed

+12
-13
lines changed

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

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

55-
### OpenTelemetry Collector Lambda layer
55+
### Configure the lambda function
56+
57+
Navigate to [functions](https://console.aws.amazon.com/lambda/home#/functions) in the AWS Lambda Console and open the function you want to instrument.
58+
59+
* Navigate to the **Layers** section and click **Add a layer**.
60+
Use the following upstream [collector lambda layer](https://github.com/open-telemetry/opentelemetry-lambda/tree/main?tab=readme-ov-file#latest-layer-versions)
5661

57-
Use the following upstream [collector lambda layer](https://github.com/open-telemetry/opentelemetry-lambda/tree/main?tab=readme-ov-file#latest-layer-versions)
62+
* `arn:aws:lambda:<region>:184161586896:layer:opentelemetry-collector-<amd64|arm64>-<version>:1`
5863

59-
* `arn:aws:lambda:<region>:184161586896:layer:opentelemetry-collector-<amd64|arm64>-<version>:1`
64+
* In the **Choose a layer** menu, select **Specify an ARN** and paste the above ARN ID for your Lambda function
65+
:::note
66+
Lambda layers are a regionalized resource, meaning that they can only be used in the Region in which they are published. Make sure to use the layer in the same region as your Lambda functions.
67+
:::
6068

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.
69+
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.
6270

6371
* Configure the collector layer to send data to SumoLogic:
6472

@@ -91,15 +99,6 @@ Use the following upstream [collector lambda layer](https://github.com/open-tele
9199
aws lambda update-function-configuration --function-name Function --environment Variables={OPENTELEMETRY_COLLECTOR_CONFIG_URI=/var/task/collector.yaml}
92100
```
93101

94-
### Configure the lambda function
95-
96-
Navigate to [functions](https://console.aws.amazon.com/lambda/home#/functions) in the AWS Lambda Console and open the function you want to instrument.
97-
98-
* Navigate to the **Layers** section and click **Add a layer**.
99-
* In the **Choose a layer** menu, select **Specify an ARN** and paste the ARN ID for your Lambda function
100-
:::note
101-
Lambda layers are a regionalized resource, meaning that they can only be used in the Region in which they are published. Make sure to use the layer in the same region as your Lambda functions.
102-
:::
103102
* Configure the following environment variables:
104103

105104
Navigate to the **Configuration > Environment variables** section and ensure that the following environment variables are setup:

0 commit comments

Comments
 (0)