diff --git a/content/en/docs/demo/services/payment.md b/content/en/docs/demo/services/payment.md index 1e102fcbf87c..5c018ceaa3d5 100644 --- a/content/en/docs/demo/services/payment.md +++ b/content/en/docs/demo/services/payment.md @@ -81,15 +81,13 @@ const sdk = new opentelemetry.NodeSDK({ }); sdk.start(); - -require('./index.js'); ``` You can then use `opentelemetry.js` to start your app. This can be done in the `ENTRYPOINT` command for the service's `Dockerfile`. ```dockerfile -ENTRYPOINT [ "node", "./opentelemetry.js" ] +ENTRYPOINT [ "node", "--require", "./opentelemetry.js", "./index.js" ] ``` ## Traces