Skip to content

Commit

Permalink
test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nhulston committed Nov 8, 2024
1 parent ab88010 commit bcd5478
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/trace/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func (l *Listener) HandlerStarted(ctx context.Context, msg json.RawMessage) cont
tracer.WithLambdaMode(extensionNotRunning),
tracer.WithGlobalTag("_dd.origin", "lambda"),
tracer.WithSendRetries(2),
tracer.WithSamplingRules([]tracer.SamplingRule{tracer.RateRule(0.1)}),
}, l.tracerOptions...)
if l.otelTracerEnabled {
provider := ddotel.NewTracerProvider(
Expand Down Expand Up @@ -164,7 +163,7 @@ func startFunctionExecutionSpan(ctx context.Context, mergeXrayTraces bool, isDdS
span := tracer.StartSpan(
"aws.lambda", // This operation name will be replaced with the value of the service tag by the Forwarder
tracer.SpanType("serverless"),
tracer.ChildOf(parentSpanContext),
//tracer.ChildOf(parentSpanContext),
tracer.ResourceName(resourceName),
tracer.Tag("cold_start", ctx.Value("cold_start")),
tracer.Tag("function_arn", functionArn),
Expand Down

0 comments on commit bcd5478

Please sign in to comment.