Skip to content

Commit f448555

Browse files
committed
make it clear that <ingesting-host> isn't optional
1 parent 41b9624 commit f448555

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

example-project/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ To run the example application, simply run the following command:
1818
node index.js <source-token> <ingesting-host>
1919
```
2020

21-
_Don't forget to replace <source-token> with your actual source token which you can find by going to telemetry.betterstack.com -> sources -> configure._
22-
23-
The `<ingesting-host>` variable is optional. It defaults to `https://in.logs.betterstack.com` but you can provide a different host by heading to **[Sources](https://telemetry.betterstack.com/team/0/sources) -> Configure** in Better Stack.
21+
_Don't forget to replace `<source-token>` and `<ingesting-host>` with your actual source token and ingesting host which you can find by going to **[Sources](https://telemetry.betterstack.com/team/0/sources) -> Configure** in Better Stack._
2422

2523
You should see the following output:
2624

example-project/index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ const { Node: Logtail } = require("@logtail/js");
1313
// In frontend code use the following:
1414
// import { Browser as Logtail } from "@logtail/js";
1515

16-
// Set ingesting host using command line argument or omit to use the default
17-
const endpoint = process.argv[3] || "https://in.logs.betterstack.com";
18-
1916
// Create a logger from a Logtail class
2017
const logger = new Logtail(process.argv[2], {
21-
sendLogsToConsoleOutput: true,
22-
endpoint,
18+
sendLogsToConsoleOutput: true,
19+
endpoint: process.argv[3],
2320
});
2421

2522
// Usage

0 commit comments

Comments
 (0)