Skip to content

Commit

Permalink
Use /v1/traces in http endpoint for .NET exporters doc (#3583)
Browse files Browse the repository at this point in the history
Co-authored-by: Cijo Thomas <[email protected]>
  • Loading branch information
cartermp and cijothomas authored Dec 12, 2023
1 parent 579b647 commit 9901c2e
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 9901c2e

Please sign in to comment.