Skip to content

Commit 94a7b2b

Browse files
committed
fix broken integration test
1 parent f5cef3f commit 94a7b2b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tracer/src/Datadog.Trace/ClrProfiler/AutoInstrumentation/Azure/Functions/AzureFunctionsCommon.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,11 @@ _ when type.StartsWith("eventGrid", StringComparison.OrdinalIgnoreCase) => "Even
293293
fullName: functionContext.FunctionDefinition.EntryPoint,
294294
bindingSource: rootSpan.Tags is AzureFunctionsTags t ? t.BindingSource : null,
295295
triggerType: triggerType);
296-
// change root span's type to "serverless"
297-
scope.Root.Span.Type = SpanType;
298-
scope.Span.ResourceName = $"{triggerType} {functionName}";
299-
scope.Span.Type = SpanType;
300296
}
301297

298+
scope.Root.Span.Type = SpanType;
299+
scope.Span.ResourceName = $"{triggerType} {functionName}";
300+
scope.Span.Type = SpanType;
302301
tracer.TracerManager.Telemetry.IntegrationGeneratedSpan(IntegrationId);
303302
}
304303
catch (Exception ex)

0 commit comments

Comments
 (0)