File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/DotNetWorker.OpenTelemetry Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,21 +9,22 @@ namespace Microsoft.Azure.Functions.Worker.OpenTelemetry
99{
1010 public static class ConfigureFunctionsOpenTelemetry
1111 {
12- public static OpenTelemetryBuilder UseFunctionsWorkerDefaults ( this OpenTelemetryBuilder builder )
12+ public static IOpenTelemetryBuilder UseFunctionsWorkerDefaults ( this IOpenTelemetryBuilder builder )
1313 {
1414 if ( builder is null )
1515 {
1616 throw new ArgumentNullException ( nameof ( builder ) ) ;
1717 }
1818
1919 builder . Services
20- // Lets the host know that the worker is sending logs to App Insights. The host will now ignore these .
20+ // Tells the host to no longer emit telemetry on behalf of the worker .
2121 . Configure < WorkerOptions > ( workerOptions => workerOptions . Capabilities [ "WorkerOpenTelemetryEnabled" ] = bool . TrueString ) ;
2222
2323 builder . ConfigureResource ( ( resourceBuilder ) =>
2424 {
2525 resourceBuilder . AddDetector ( new FunctionsResourceDetector ( ) ) ;
2626 } ) ;
27+
2728 return builder ;
2829 }
2930 }
You can’t perform that action at this time.
0 commit comments