playfulprogramming / playfulprogramming/hoof
Set up logging with OpenTelemetry/Grafana
@fennifith is already working on this.
Since May 25, 2025.
- Dominant language
- TypeScript
- Stars
- 9
- Forks
- 7
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 23
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.