Navigate to your workspace's root directory, and install the latest Helios OpenTelemetry SDK:
npm install --save helios-opentelemetry-sdk
Or, if you are using Yarn:
yarn add helios-opentelemetry-sdk
Define the following environment variables when running your service, under the
.env file on your root folder or any other file stated in the Environment Variables Nx documentation:
HS_TOKEN=<API_TOKEN> # TODO: Replace value with API token from Helios.
HS_ENVIRONMENT="<ENVIRONMENT_NAME>" # TODO: Replace value with service environment.
The service name for each app is taken from the Nx configuration.
Define the same environment variables on the environment your app is running on.
Nx.dev is a next generation build system with first class monorepo support and powerful integrations.
Updated 9 months ago