Commit abf451a
feat(metrics): Trace Metrics (#5026)
* Metrics Options
* MetricsApi stub
* Add transport types for metrics
* Enable metrics by default
* Format code
* Add batch processor for Metrics
* Wire up Metrics parts
* Metrics counter basic API
* Metrics Count API
* Metrics Distribution API
* Metrics Gauge API
* Metrics Envelope item deserialization
* Record client report for discarded metrics envelope item
* Metrics external options
* Metrics Manifest options for Android
* Android Metrics batch processor and factory
* Only send user attributes if sendDefaultPii is true
* Remove Experimental Annotation from Metrics Options
* Add unit tests for Metrics
* Create SentryMetricsParameters for Metrics
* Use uv for managing python version
* fix
* Add device and OS attributes to metrics
* Add AI rules files for Metrics (and update feature flags rule)
* Close and flush MetricsBatchProcessor from SentryClient
* fix
* Add E2E tests for Metrics
* Final keyword in Metrics methods
* Add Hint to Metrics
* SentryMetricsParameters create shortcut for attributes map
* Automatically use SentryOptions.Metrics.BeforeSendMetricCallback Spring beans
* Rename sample API param, remove sleep
* Create MetricsUnit constants
* Format code
* Metrics Options (#4980)
* feat(metrics): [Trace Metrics 2] MetricsApi stub (#4981)
* Metrics Options
* MetricsApi stub
* More PR review changes (#5028)
* Some more PR review changes
* Format code
---------
Co-authored-by: Sentry Github Bot <[email protected]>
* changelog
* non nullable trace id
* error log now says metric instead of log
---------
Co-authored-by: Sentry Github Bot <[email protected]>
Co-authored-by: lcian <[email protected]>1 parent f064536 commit abf451a
File tree
109 files changed
+5048
-44
lines changed- .cursor/rules
- devenv
- sentry-android-core
- api
- src
- main/java/io/sentry/android/core
- test/java/io/sentry/android/core
- sentry-samples
- sentry-samples-console-opentelemetry-noagent/src
- main/java/io/sentry/samples/console
- test/kotlin/sentry/systemtest
- sentry-samples-console/src
- main/java/io/sentry/samples/console
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-7/src
- main/java/io/sentry/samples/spring7/web
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot-4-opentelemetry-noagent/src
- main/java/io/sentry/samples/spring/boot4
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot-4-opentelemetry/src
- main/java/io/sentry/samples/spring/boot4
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot-4-webflux/src
- main/java/io/sentry/samples/spring/boot4
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot-4/src
- main/java/io/sentry/samples/spring/boot4
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot-jakarta-opentelemetry-noagent/src
- main/java/io/sentry/samples/spring/boot/jakarta
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot-jakarta-opentelemetry/src
- main/java/io/sentry/samples/spring/boot/jakarta
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot-jakarta/src
- main/java/io/sentry/samples/spring/boot/jakarta
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot-opentelemetry-noagent/src
- main/java/io/sentry/samples/spring/boot
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot-opentelemetry/src
- main/java/io/sentry/samples/spring/boot
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot-webflux-jakarta/src
- main/java/io/sentry/samples/spring/boot/jakarta
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot-webflux/src
- main/java/io/sentry/samples/spring/boot
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-boot/src
- main/java/io/sentry/samples/spring/boot
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring-jakarta/src
- main/java/io/sentry/samples/spring/jakarta/web
- test/kotlin/io/sentry/systemtest
- sentry-samples-spring/src
- main/java/io/sentry/samples/spring/web
- test/kotlin/io/sentry/systemtest
- sentry-spring-boot-4/src
- main/java/io/sentry/spring/boot4
- test/kotlin/io/sentry/spring/boot4
- sentry-spring-boot-jakarta/src
- main/java/io/sentry/spring/boot/jakarta
- test/kotlin/io/sentry/spring/boot/jakarta
- sentry-spring-boot/src
- main/java/io/sentry/spring/boot
- test/kotlin/io/sentry/spring/boot
- sentry-system-test-support
- api
- src/main/kotlin/io/sentry/systemtest/util
- sentry
- api
- src
- main/java/io/sentry
- clientreport
- logger
- metrics
- test
- java/io/sentry
- clientreport
- metrics
- protocol
- resources/json
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
109 files changed
+5048
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | | - | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
44 | 55 | | |
45 | 56 | | |
46 | 57 | | |
| |||
72 | 83 | | |
73 | 84 | | |
74 | 85 | | |
| 86 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
52 | 61 | | |
53 | 62 | | |
54 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments