Telemetry
Quick and easy telemetry setup
Last updated
Quick and easy telemetry setup
Last updated
AXAR comes with built-in support for to collect telemetry data. OpenTelemetry is an open-source framework that helps you capture and analyze what's happening in your app.
Good news - there's nothing extra you need to do to enable telemetry! If you've already set up OpenTelemetry in your project, AXAR will automatically hook into it. Here's how you can get started with NodeSDK
.
First, install the required OpenTelemetry packages:
NodeSDK
Now, add the following setup in your code:
Once everything is running, you can visualize traces using Jaeger or Zipkin.
✔ Full code example can be found here:
To test telemetry locally, you'll need an OpenTelemetry collector and a compatible backend. We recommend using the .
To deploy OpenTelemetry in production, check out the . It walks you through setting up the collector and configuring it to receive data from your app.