We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Greenfield projects likely use .NET builder from hosting extensions for configuration. The current guidance and samples use the OpenTelemetry SDK
For example, at https://docs.particular.net/nservicebus/operations/opentelemetry#traces:
var tracingProviderBuilder = Sdk.CreateTracerProviderBuilder() .AddSource("NServiceBus.Core") // ... Add other trace sources // ... Add exporters .Build();
while it likely is better to use:
services.AddOpenTelemetry() .ConfigureResource(rb => rb.AddService(Global.ActivitySource.Name, serviceInstanceId: Global.InstanceId).AddAttributes(attributes)) .WithTracing(tracerProviderBuilder => { tracerProviderBuilder .AddSource("NServiceBus.*") .AddSource(Global.ActivitySource.Name) .AddAzureMonitorTraceExporter(o => o.ConnectionString = applicationInsightsConnectionString) ; }) .WithMetrics(cfg => { cfg .AddMeter("NServiceBus.Core") .AddAzureMonitorMetricExporter(o => o.ConnectionString = applicationInsightsConnectionString) ; });```
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Greenfield projects likely use .NET builder from hosting extensions for configuration. The current guidance and samples use the OpenTelemetry SDK
For example, at https://docs.particular.net/nservicebus/operations/opentelemetry#traces:
while it likely is better to use:
The text was updated successfully, but these errors were encountered: