Skip to content

Commit

Permalink
Use /v1/traces in http endpoint for .NET exporters doc
Browse files Browse the repository at this point in the history
fixes #3550 as a stopgap

Eventually, we'll want to rewrite this page in accordance with #3559, but for now this addresses a known point of confusion.
  • Loading branch information
cartermp authored Nov 22, 2023
1 parent c142eeb commit 0b14f68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/en/docs/instrumentation/net/exporters.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ builder.Services.AddOpenTelemetry()
b
.AddOtlpExporter(opt =>
{
opt.Endpoint = new Uri("your-endpoint-here");
opt.Endpoint = new Uri("your-endpoint-here/v1/traces");
opt.Protocol = OtlpExportProtocol.HttpProtobuf;
})
// The rest of your setup code goes here too
Expand All @@ -98,7 +98,7 @@ Otherwise, configure the exporter when creating a tracer provider:
using var tracerProvider = Sdk.CreateTracerProviderBuilder()
.AddOtlpExporter(opt =>
{
opt.Endpoint = new Uri("your-endpoint-here");
opt.Endpoint = new Uri("your-endpoint-here/v1/traces");
opt.Protocol = OtlpExportProtocol.HttpProtobuf;
})

Expand Down

0 comments on commit 0b14f68

Please sign in to comment.