From 3055f99d34c6f80291a6e31e6e05115defdcfe73 Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Thu, 5 Sep 2024 16:15:24 +1000 Subject: [PATCH] Remove redundant /v1/logs path from endpoints in README and example --- README.md | 4 ++-- example/Example/Program.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9cc0dca..e11eaea 100644 --- a/README.md +++ b/README.md @@ -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(); ``` @@ -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(); diff --git a/example/Example/Program.cs b/example/Example/Program.cs index 602b70f..38838b1 100644 --- a/example/Example/Program.cs +++ b/example/Example/Program.cs @@ -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()