Skip to content

Commit 7e9ff24

Browse files
authored
docs: updated example in README to match updated start method (#3684)
1 parent a96e429 commit 7e9ff24

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ For experimental package changes, see the [experimental CHANGELOG](experimental/
2020

2121
### :books: (Refine Doc)
2222

23+
* doc(sdk): update NodeSDK example [#3684](https://github.com/open-telemetry/opentelemetry-js/pull/3684) @martinkuba
24+
2325
### :house: (Internal)
2426

2527
## 1.10.0

experimental/packages/opentelemetry-sdk-node/README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,7 @@ const sdk = new opentelemetry.NodeSDK({
5858
// See the Configuration section below for additional configuration options
5959
});
6060

61-
// You can optionally detect resources asynchronously from the environment.
62-
// Detected resources are merged with the resources provided in the SDK configuration.
63-
sdk.start().then(() => {
64-
// Resources have been detected and SDK is started
65-
});
61+
sdk.start();
6662

6763
// You can also use the shutdown method to gracefully shut down the SDK before process shutdown
6864
// or on some operating system signal.

0 commit comments

Comments
 (0)