Skip to content

Commit

Permalink
update operation name and service name
Browse files Browse the repository at this point in the history
  • Loading branch information
nhulston committed Feb 11, 2025
1 parent 1cfa7c8 commit eb0bf16
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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);
Expand Down

0 comments on commit eb0bf16

Please sign in to comment.