Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public void ConfigureServices(IServiceCollection services)
{
services.AddOpenTelemetryTracing(builder =>
{
builder.SetResourceBuilder(ResourceBuilder.CreateDefault().AddService("AspNetCore"));
builder.AddSource("AspNetCore");
builder.AddZipkinExporter();
builder.AddNServiceBusInstrumentation();
builder.AddHttpClientInstrumentation();
builder.AddAspNetCoreInstrumentation();
});
services.AddSales();
services.AddShipping();
services.AddControllers();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment