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

Custom Metrics in SDKs #115

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Custom Metrics in SDKs #115

wants to merge 2 commits into from

Conversation

mitsuhiko
Copy link
Member

This is a work in progress RFC for how metrics fit into SDKs. I will update motivation and text here shortly.

Rendered RFC

Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

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

Exciting RFC 😃

text/xxxx-metrics.md Outdated Show resolved Hide resolved

## Aggregations

SDKs are expected to aggregate locally for windows of up to 10 seconds. The aggregator shall be
Copy link
Member

Choose a reason for hiding this comment

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

I guess that mobile and browser SDKs can apply a different strategy cause the metrics frequency will be lower. One strategy could be to attach these buckets to an already scheduled envelope, which we do for client reports.


SDKs are expected to aggregate locally for windows of up to 10 seconds. The aggregator shall be
running in the background and regularly flush out items. Upon shutdown the SDK needs to ensure
that unflushed buckets are drained. SDKs area also encouraged to ensure that the total aggregation
Copy link
Member

Choose a reason for hiding this comment

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

For Mobile, do we need to ensure that we do not lose any buckets when crashing, or is losing some buckets acceptable? I would say losing buckets is unacceptable. One way to achieve this is to sync the buckets across multiple layers, as we already do for the scope.

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.

None yet

2 participants