File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
samples/Sentry.Samples.OpenTelemetry.AzureFunctions Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change 66
77using var tracerProvider = Sdk . CreateTracerProviderBuilder ( )
88 . AddSentry ( ) // <-- Configure OpenTelemetry to send traces to Sentry
9- . AddAspNetCoreInstrumentation ( ) // From OpenTelemetry.Instrumentation.AspNetCore... adds automatic tracing for incoming requests
109 . AddHttpClientInstrumentation ( ) // From OpenTelemetry.Instrumentation.Http... adds automatic tracing for outgoing HTTP requests
1110 . Build ( ) ;
1211
Original file line number Diff line number Diff line change 1010 <PackageReference Include =" Microsoft.Azure.Functions.Worker.Extensions.Http" Version =" 3.0.13" />
1111 <PackageReference Include =" Microsoft.Azure.Functions.Worker.Extensions.Timer" Version =" 4.2.0" />
1212 <PackageReference Include =" Microsoft.Azure.Functions.Worker.Sdk" Version =" 2.0.0" />
13- <PackageReference Include =" OpenTelemetry" Version =" 1.8.0" />
14- <PackageReference Include =" OpenTelemetry.Instrumentation.AspNetCore" Version =" 1.13.0" />
13+ <PackageReference Include =" OpenTelemetry" Version =" 1.13.0" />
1514 <PackageReference Include =" OpenTelemetry.Instrumentation.Http" Version =" 1.13.0" />
1615 </ItemGroup >
1716
You can’t perform that action at this time.
0 commit comments