Skip to content

Commit

Permalink
Merge pull request #158 from nblumhardt/endpoint-docs
Browse files Browse the repository at this point in the history
Remove redundant `/v1/logs` path from endpoints in README and example
  • Loading branch information
nblumhardt committed Sep 5, 2024
2 parents 2c9ebbc + 3055f99 commit 87e1ade
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ setups, and looks like:
```csharp
Log.Logger = new LoggerConfiguration()
.WriteTo.OpenTelemetry(
endpoint: "http://127.0.0.1:4318/v1/logs",
endpoint: "http://127.0.0.1:4318",
protocol: OtlpProtocol.HttpProtobuf)
.CreateLogger();
```
Expand All @@ -57,7 +57,7 @@ configuration, which looks like:
Log.Logger = new LoggerConfiguration()
.WriteTo.OpenTelemetry(options =>
{
options.Endpoint = "http://127.0.0.1:4318/v1/logs";
options.Endpoint = "http://127.0.0.1:4318";
options.Protocol = OtlpProtocol.HttpProtobuf;
})
.CreateLogger();
Expand Down
2 changes: 1 addition & 1 deletion example/Example/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static void SendLogs(ILogger logger, string protocol)
static Logger CreateLogger(OtlpProtocol protocol)
{
var endpoint = protocol == OtlpProtocol.HttpProtobuf ?
"http://localhost:4318/v1/logs" :
"http://localhost:4318" :
"http://localhost:4317";

return new LoggerConfiguration()
Expand Down

0 comments on commit 87e1ade

Please sign in to comment.