Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit bc38c47

Browse files
committed
Update lambda docs
1 parent ad9dfaf commit bc38c47

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

gdi/get-data-in/serverless/aws/otel-lambda-layer/instrumentation/dotnet-lambdas.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can instrument a .NET AWS Lambda function to send traces to Splunk Observabi
1414
* :new-page:`OpenTelemetry.Instrumentation.AWS <https://www.nuget.org/packages/OpenTelemetry.Instrumentation.AWS>`
1515
* :new-page:`OpenTelemetry.Instrumentation.AWSLambda <https://www.nuget.org/packages/OpenTelemetry.Instrumentation.AWSLambda>`
1616
* :new-page:`OpenTelemetry.Instrumentation.Http <https://www.nuget.org/packages/OpenTelemetry.Instrumentation.Http>`
17-
* :new-page:`OpenTelemetry.ResourceDetectors.AWS <https://www.nuget.org/packages/OpenTelemetry.ResourceDetectors.AWS>`
17+
* :new-page:`OpenTelemetry.Resources.AWS <https://www.nuget.org/packages/OpenTelemetry.Resources.AWS/>`
1818

1919
To instrument a .NET function in AWS Lambda for Splunk APM, follow these steps:
2020

@@ -26,7 +26,6 @@ To instrument a .NET function in AWS Lambda for Splunk APM, follow these steps:
2626
using OpenTelemetry;
2727
using OpenTelemetry.Exporter;
2828
using OpenTelemetry.Instrumentation.AWSLambda;
29-
using OpenTelemetry.ResourceDetectors.AWS;
3029
using OpenTelemetry.Resources;
3130
using OpenTelemetry.Trace;
3231
using System.Diagnostics;
@@ -72,8 +71,8 @@ To instrument a .NET function in AWS Lambda for Splunk APM, follow these steps:
7271
.ConfigureResource(configure => configure
7372
.AddService(serviceName, serviceVersion: "1.0.0")
7473
// Different resource detectors can be found at
75-
// https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.ResourceDetectors.AWS#usage
76-
.AddDetector(new AWSEBSResourceDetector()))
74+
// https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.Resources.AWS#usage
75+
.AddAWSEBSDetector())
7776
.AddOtlpExporter(opts =>
7877
{
7978
opts.Endpoint = new Uri($"https://ingest.{realm}.signalfx.com/v2/trace/otlp");

0 commit comments

Comments
 (0)