apibara / dna

Apibara is the fastest platform to build production-grade indexers that connect onchain data to web2 services.
https://www.apibara.com/
Apache License 2.0
168 stars 32 forks source link

Improve sink status service #299

Closed fracek closed 7 months ago

fracek commented 7 months ago

Publish sync related metrics to OTEL. Users can use this data to generate grafana dashboards.

Additionally, move the status service to its dedicated task. Previously, the indexer and the status service were running on the same tokio task. This is an issue because the status service had to wait for the DNA stream to finish producing messages before it could handle updating the status. In practice, this resulted in annoying grpc timeout errors for clients trying to access the sink status.

Moving the status service to its own task solves the issue.

fracek commented 7 months ago

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.