Skip to content

Commit 3055f99

Browse files
committed
Remove redundant /v1/logs path from endpoints in README and example
1 parent 2c9ebbc commit 3055f99

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ setups, and looks like:
4545
```csharp
4646
Log.Logger = new LoggerConfiguration()
4747
.WriteTo.OpenTelemetry(
48-
endpoint: "http://127.0.0.1:4318/v1/logs",
48+
endpoint: "http://127.0.0.1:4318",
4949
protocol: OtlpProtocol.HttpProtobuf)
5050
.CreateLogger();
5151
```
@@ -57,7 +57,7 @@ configuration, which looks like:
5757
Log.Logger = new LoggerConfiguration()
5858
.WriteTo.OpenTelemetry(options =>
5959
{
60-
options.Endpoint = "http://127.0.0.1:4318/v1/logs";
60+
options.Endpoint = "http://127.0.0.1:4318";
6161
options.Protocol = OtlpProtocol.HttpProtobuf;
6262
})
6363
.CreateLogger();

example/Example/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static void SendLogs(ILogger logger, string protocol)
6363
static Logger CreateLogger(OtlpProtocol protocol)
6464
{
6565
var endpoint = protocol == OtlpProtocol.HttpProtobuf ?
66-
"http://localhost:4318/v1/logs" :
66+
"http://localhost:4318" :
6767
"http://localhost:4317";
6868

6969
return new LoggerConfiguration()

0 commit comments

Comments
 (0)