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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rate limit to metrics and update normalization rules #1973

Conversation

stefanosiano
Copy link
Member

@stefanosiano stefanosiano commented Apr 8, 2024

馃摐 Description

added metric_bucket data category for rate limits
updated metric normalization rules

#skip-changelog

馃挕 Motivation and Context

Fixes #1957 and #1965

馃挌 How did you test it?

馃摑 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPii is enabled
  • I updated the docs if needed
  • All tests passing
  • No breaking changes

馃敭 Next steps

updated metric normalization rules
@stefanosiano stefanosiano changed the base branch from main to feat/metrics_counter_p1 April 8, 2024 16:35
Copy link
Contributor

github-actions bot commented Apr 8, 2024

Messages
馃摉 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 馃毇 dangerJS against 242cdea

@stefanosiano stefanosiano marked this pull request as ready for review April 8, 2024 16:51
@buenaflor
Copy link
Contributor

seems like one test is still failing

@stefanosiano
Copy link
Member Author

yeah, it's failing in the base branch. It started failing after I merged the stacked PRs, but none of the stacked PRs were failing :/

@stefanosiano stefanosiano merged commit c611731 into feat/metrics_counter_p1 Apr 9, 2024
123 of 126 checks passed
@stefanosiano stefanosiano deleted the feat/metrics_rate_limit_new_normalization branch April 9, 2024 09:13
stefanosiano added a commit that referenced this pull request Apr 9, 2024
Add Counter Metric API (part 1) (#1940)
* added Counter Metric API
* added Metric Aggregation, with hub/client integration and close
* added metric tag normalization
* added send of statsd envelope type

Add other metric types and weight (part 2) (#1949)
* added crc32_utils.dart, taken from archive library
* added Gauge, Distribution and Set metrics
* added weight to Metrics and auto flush when weight is too much

Add timing metric and beforeMetric callback (part 3) (#1954)
* added SentryOptions.beforeMetricCallback
* added beforeMetricCallback logic in metrics_aggregator.dart
* added timing metric api with span auto start
* timing api uses span duration as value for the emitted metric if possible

Add metrics span summary (part 4) (#1958)
* added local_metrics_aggregator.dart to spans
* metrics_aggregator.dart now adds to current span's localMetricsAggregator
* added metric_summary.dart
* added metricSummary to spans and transaction JSONs

Add rate limit (part 5) (#1973)
* added metric_bucket data category for rate limits
* updated metric normalization rules
* added rate limit for metrics
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.

Metrics Rate Limits
2 participants