-
-
Notifications
You must be signed in to change notification settings - Fork 3
Description
We want to configure opentelemetry traces so that requests & tasks can be monitored once deployed.
-
For testing, set up this image in docker-compose.yml: https://grafana.com/blog/2024/03/13/an-opentelemetry-backend-in-a-docker-image-introducing-grafana/otel-lgtm/ (it'll likely be useful for local debugging as well)
-
Use the OpenTelemetry Node.js Instrumentation, and configure it to export to the grafana container instead of the console.
-
Install @fastify/otel, which should create spans/traces for each http request.
-
Add bullmq-otel to produce spans/traces for worker tasks.
-
Configure the bullmq tasks to inherit parent spans from the
/tasks/*endpoint that invokes them (this might need an extra/optional property in each task input) - see: Context Propagation
Metadata
Metadata
Assignees
Labels
Type
Projects
Status