The Wayback Machine - https://web.archive.org/web/20201107111537/https://github.com/absinthe-graphql/absinthe/issues/653
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging subscription broadcast timing? #653

Closed
schabou opened this issue Dec 18, 2018 · 2 comments
Closed

Logging subscription broadcast timing? #653

schabou opened this issue Dec 18, 2018 · 2 comments

Comments

@schabou
Copy link

@schabou schabou commented Dec 18, 2018

Looking into tracking the delay between when a change in the data happens and the eventual publish_subscription broadcast that sends a message out to each subscribed user, there's currently no easy way to retrieve that information.

Being able to measure how long it takes for the system to process an update and push it out to subscribed users would be nice to have from a performance benchmarking / monitoring perspective.

@benwilson512
Copy link
Contributor

@benwilson512 benwilson512 commented Jan 1, 2019

Absinthe should probably integrate with Telemetry to emit events. Notably, in this particular case all that Absinthe can measure is the time required to run / broadcast on a specific document topic. There may be multiple actual processes subscribed to that topic. Broadcasting to those would be handled by PhoenixPubSub so Absinthe isn't able to emit events at that level of granularity.

PR is welcome with a telemetry integration.

@benwilson512
Copy link
Contributor

@benwilson512 benwilson512 commented Mar 28, 2020

Telemetry is now included in Absinthe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.