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
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ You'll need the following:
52
52
* .NET 6 SDK
53
53
* Sumo Logic OTLP endpoint URL
54
54
55
-
### Configure the Collector Lambda layer
55
+
### OpenTelemetry Collector Lambda layer
56
56
57
57
Use the following upstream [collector lambda layer](https://github.com/open-telemetry/opentelemetry-lambda/tree/main?tab=readme-ov-file#latest-layer-versions)
58
58
@@ -61,6 +61,7 @@ Use the following upstream [collector lambda layer](https://github.com/open-tele
61
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.
62
62
63
63
* Configure the collector layer to send data to SumoLogic:
64
+
64
65
```yaml
65
66
receivers:
66
67
otlp:
@@ -83,10 +84,6 @@ Use the following upstream [collector lambda layer](https://github.com/open-tele
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:
92
89
@@ -104,11 +101,18 @@ Navigate to [functions](https://console.aws.amazon.com/lambda/home#/functions)
104
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.
105
102
:::
106
103
* Configure the following environment variables:
104
+
105
+
Navigate to the **Configuration > Environment variables** section and ensure that the following environment variables are setup:
Any other environment variables like `OTEL_RESOURCE_ATTRIBUTES` or `OTEL_SERVICE_NAME` could also be configured.
112
116
113
117
Your function should be successfully instrumented. Invoke the function and find your traces in the [Sumo Logic Tracing screen](/docs/apm/traces/view-and-investigate-traces)
0 commit comments