Skip to content

Commit 4d565da

Browse files
committed
Use betterStackEndpoint: "https://<ingesting_host>" in examples for clarity
Otherwise, users might run into the following error: Exception while emitting periodic batch from Serilog.Sinks.Http.Private.NonDurable.HttpSink: System.InvalidOperationException: An invalid request URI was provided. Either the request URI must be an absolute URI or BaseAddress must be set.
1 parent e87d044 commit 4d565da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

example-project/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Log.Logger = new LoggerConfiguration()
1111
.WriteTo.BetterStack(
1212
sourceToken: "<source_token>",
13-
betterStackEndpoint: "<ingesting_host>"
13+
betterStackEndpoint: "https://<ingesting_host>"
1414
)
1515
.WriteTo.Console()
1616
.MinimumLevel.Debug()

example-project/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ using Serilog;
5151
Log.Logger = new LoggerConfiguration()
5252
.WriteTo.BetterStack(
5353
sourceToken: "<source_token>",
54-
betterStackEndpoint: "<ingesting_host>"
54+
betterStackEndpoint: "https://<ingesting_host>"
5555
)
5656
.CreateLogger();
5757
```
@@ -98,7 +98,7 @@ You can adjust this behavior by setting the `queueLimitBytes`, `batchSize`, and
9898
Log.Logger = new LoggerConfiguration()
9999
.WriteTo.BetterStack(
100100
sourceToken: "<source_token>",
101-
betterStackEndpoint: "<ingesting_host>",
101+
betterStackEndpoint: "https://<ingesting_host>",
102102
queueLimitBytes: 100 * 1024 * 1024,
103103
batchSize: 100,
104104
batchInterval: TimeSpan.FromSeconds(30)

0 commit comments

Comments
 (0)