diff --git a/gdi/get-data-in/serverless/aws/otel-lambda-layer/instrumentation/dotnet-lambdas.rst b/gdi/get-data-in/serverless/aws/otel-lambda-layer/instrumentation/dotnet-lambdas.rst index 849dc56ac..2029b1680 100644 --- a/gdi/get-data-in/serverless/aws/otel-lambda-layer/instrumentation/dotnet-lambdas.rst +++ b/gdi/get-data-in/serverless/aws/otel-lambda-layer/instrumentation/dotnet-lambdas.rst @@ -14,7 +14,7 @@ You can instrument a .NET AWS Lambda function to send traces to Splunk Observabi * :new-page:`OpenTelemetry.Instrumentation.AWS ` * :new-page:`OpenTelemetry.Instrumentation.AWSLambda ` * :new-page:`OpenTelemetry.Instrumentation.Http ` -* :new-page:`OpenTelemetry.ResourceDetectors.AWS ` +* :new-page:`OpenTelemetry.Resources.AWS ` To instrument a .NET function in AWS Lambda for Splunk APM, follow these steps: @@ -26,7 +26,6 @@ To instrument a .NET function in AWS Lambda for Splunk APM, follow these steps: using OpenTelemetry; using OpenTelemetry.Exporter; using OpenTelemetry.Instrumentation.AWSLambda; - using OpenTelemetry.ResourceDetectors.AWS; using OpenTelemetry.Resources; using OpenTelemetry.Trace; using System.Diagnostics; @@ -72,8 +71,8 @@ To instrument a .NET function in AWS Lambda for Splunk APM, follow these steps: .ConfigureResource(configure => configure .AddService(serviceName, serviceVersion: "1.0.0") // Different resource detectors can be found at - // https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.ResourceDetectors.AWS#usage - .AddDetector(new AWSEBSResourceDetector())) + // https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.Resources.AWS#usage + .AddAWSEBSDetector()) .AddOtlpExporter(opts => { opts.Endpoint = new Uri($"https://ingest.{realm}.signalfx.com/v2/trace/otlp");