Skip to content

Eagerly push metrics when pushInterval is 0 #99

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

Merged
merged 27 commits into from
Jul 21, 2023

Conversation

brettimus
Copy link
Collaborator

@brettimus brettimus commented Jul 18, 2023

Implements #98


Tested with a Supabase Edge Function locally and it works.

(To test with an edge function, I published the changes to the core lib as a package called brettermetricson npm, then imported in Deno via https://esm.sh/brettermetrics@0.6.0)


Note that this is only a hotfix for experimental support in FaaS environments. We can do a follow-up PR to hash out things like configuration, error logging, etc.

@brettimus brettimus self-assigned this Jul 18, 2023
@brettimus brettimus changed the title [WIP] Eagerly push metrics when pushInterval is 0 Eagerly push metrics when pushInterval is 0 Jul 20, 2023
Copy link
Collaborator

@arendjr arendjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionality looks good, just some style comments.

Copy link
Member

@laulauland laulauland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@brettimus brettimus merged commit b01ccc6 into main Jul 21, 2023
@brettimus brettimus deleted the support-immediately-pushing-metrics branch July 21, 2023 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants