You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/apm/traces/get-started-transaction-tracing/opentelemetry-instrumentation/aws-lambda/dotnet.md
+12-13Lines changed: 12 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,13 +52,21 @@ You'll need the following:
52
52
* .NET 6 SDK
53
53
* Sumo Logic OTLP endpoint URL
54
54
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)
56
61
57
-
Use the following upstream [collector lambdalayer](https://github.com/open-telemetry/opentelemetry-lambda/tree/main?tab=readme-ov-file#latest-layer-versions)
* 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
+
:::
60
68
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.
62
70
63
71
* Configure the collector layer to send data to SumoLogic:
64
72
@@ -91,15 +99,6 @@ Use the following upstream [collector lambda layer](https://github.com/open-tele
91
99
aws lambda update-function-configuration --function-name Function --environment Variables={OPENTELEMETRY_COLLECTOR_CONFIG_URI=/var/task/collector.yaml}
92
100
```
93
101
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
-
:::
103
102
* Configure the following environment variables:
104
103
105
104
Navigate to the **Configuration > Environment variables** section and ensure that the following environment variables are setup:
0 commit comments