Skip to content

Commit

Permalink
updated example in README to match updated start method
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkuba committed Mar 16, 2023
1 parent a96e429 commit 4d2c36c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions experimental/packages/opentelemetry-sdk-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ const sdk = new opentelemetry.NodeSDK({
// See the Configuration section below for additional configuration options
});

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

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

0 comments on commit 4d2c36c

Please sign in to comment.