File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ setups, and looks like:
4545``` csharp
4646Log .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:
5757Log .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 ();
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ static void SendLogs(ILogger logger, string protocol)
6363static 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 ( )
You can’t perform that action at this time.
0 commit comments