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

Cloud Telemetry #775

Merged
merged 48 commits into from
Nov 26, 2023
Merged

Cloud Telemetry #775

merged 48 commits into from
Nov 26, 2023

Conversation

jnunemaker
Copy link
Collaborator

It's a fancy way to say this rolls up some metrics about your flags and ships them to cloud.

increment is for tracking and drain is for when we submit to metrics collector.
* symbol headers avoids needing to freeze strings and makes consistency easier
* schema version makes for nice ruby constants on the other end
* array of metrics is easier to use dry-schema on server side to validate and inform of errors
* reset telemetry stuff in tests so they are always stopped
* allow logging telemetry thread stuff but don't in specs
* enforce minimum seconds around communication via polling or telemetry
its possible that the class could be defined but not the method if you are requiring say just metric class which defines classes but doesn't define reset for those classes.
This makes "true", "false", "1", "0" all work.
Because we only retry for like 2 minutes there is no point in trying to enqueue 30
Then I can get telemetry interval from errors too
Only takes one arg here so you have to do new to send more than one.

Also extracted fake backoff to its own file so I can use it in other places.
Puts minimum enforcement in writer and now we can use this when updating config.
Had them separate on accident
@jnunemaker jnunemaker self-assigned this Nov 26, 2023
@jnunemaker jnunemaker merged commit b3af207 into main Nov 26, 2023
64 checks passed
@jnunemaker jnunemaker deleted the rollup-instrumenter branch November 26, 2023 04:37
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.

1 participant