From eb0bf16a9ed37371f5b7760d0d1ffcd4318854fc Mon Sep 17 00:00:00 2001 From: Nicholas Hulston Date: Tue, 11 Feb 2025 17:35:42 -0500 Subject: [PATCH] update operation name and service name --- .../AutoInstrumentation/AWS/Lambda/LambdaCommon.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/AWS/Lambda/LambdaCommon.cs b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/AWS/Lambda/LambdaCommon.cs index 788f6b42e20c..651ee2bb111a 100644 --- a/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/AWS/Lambda/LambdaCommon.cs +++ b/tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/AWS/Lambda/LambdaCommon.cs @@ -18,8 +18,8 @@ namespace Datadog.Trace.ClrProfiler.AutoInstrumentation.AWS.Lambda; internal abstract class LambdaCommon { - private const string PlaceholderServiceName = "placeholder-service"; - private const string PlaceholderOperationName = "placeholder-operation"; + // Name of the placeholder invocation span sent to the Lambda extension + private const string InvocationSpanResource = "dd-tracer-serverless-span"; private const double ServerlessMaxWaitingFlushTime = 3; private const string LogLevelEnvName = "DD_LOG_LEVEL"; @@ -28,10 +28,10 @@ internal static Scope CreatePlaceholderScope(Tracer tracer, NameValueHeadersColl var context = tracer.TracerManager.SpanContextPropagator.Extract(headers).MergeBaggageInto(Baggage.Current); var span = tracer.StartSpan( - PlaceholderOperationName, + operationName: InvocationSpanResource, tags: null, parent: context.SpanContext, - serviceName: PlaceholderServiceName, + serviceName: InvocationSpanResource, addToTraceContext: true); TelemetryFactory.Metrics.RecordCountSpanCreated(MetricTags.IntegrationName.AwsLambda);