testData/solutions/AspireSolutionWithNUnit/AspireSolutionWithNUnit.ServiceDefaults/Extensions.cs [82:100]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - private static TBuilder AddOpenTelemetryExporters(this TBuilder builder) where TBuilder : IHostApplicationBuilder { var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]); if (useOtlpExporter) { builder.Services.AddOpenTelemetry().UseOtlpExporter(); } // Uncomment the following lines to enable the Azure Monitor exporter (requires the Azure.Monitor.OpenTelemetry.AspNetCore package) //if (!string.IsNullOrEmpty(builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"])) //{ // builder.Services.AddOpenTelemetry() // .UseAzureMonitor(); //} return builder; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - testData/solutions/AspireSolutionWithXUnit/AspireSolutionWithXUnit.ServiceDefaults/Extensions.cs [82:100]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - private static TBuilder AddOpenTelemetryExporters(this TBuilder builder) where TBuilder : IHostApplicationBuilder { var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]); if (useOtlpExporter) { builder.Services.AddOpenTelemetry().UseOtlpExporter(); } // Uncomment the following lines to enable the Azure Monitor exporter (requires the Azure.Monitor.OpenTelemetry.AspNetCore package) //if (!string.IsNullOrEmpty(builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"])) //{ // builder.Services.AddOpenTelemetry() // .UseAzureMonitor(); //} return builder; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - testData/solutions/DefaultAspireSolution/DefaultAspireSolution.ServiceDefaults/Extensions.cs [82:100]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - private static TBuilder AddOpenTelemetryExporters(this TBuilder builder) where TBuilder : IHostApplicationBuilder { var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]); if (useOtlpExporter) { builder.Services.AddOpenTelemetry().UseOtlpExporter(); } // Uncomment the following lines to enable the Azure Monitor exporter (requires the Azure.Monitor.OpenTelemetry.AspNetCore package) //if (!string.IsNullOrEmpty(builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"])) //{ // builder.Services.AddOpenTelemetry() // .UseAzureMonitor(); //} return builder; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -