diff --git a/requirements.txt b/requirements.txt index a69d4c2593..0d1ca7e064 100644 --- a/requirements.txt +++ b/requirements.txt @@ -23,7 +23,7 @@ python-dateutil==2.8.2 python-rapidjson==1.8 redis==4.3.4 sentry-arroyo==2.17.1 -sentry-kafka-schemas==0.1.90 +sentry-kafka-schemas==0.1.103 sentry-redis-tools==0.3.0 sentry-relay==0.8.44 sentry-sdk==1.40.5 diff --git a/rust_snuba/Cargo.lock b/rust_snuba/Cargo.lock index b49c6bfe8e..d5b5305050 100644 --- a/rust_snuba/Cargo.lock +++ b/rust_snuba/Cargo.lock @@ -3142,9 +3142,9 @@ dependencies = [ [[package]] name = "sentry-kafka-schemas" -version = "0.1.90" +version = "0.1.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "689315a991314f4ec0f55ad6c0a5f9bfb8a34384916a3f7165dbd83c3fd2466e" +checksum = "8aa71f61368e4a64120deea72b0c3fe9120ecf508b3816e632ae58a4cca877a7" dependencies = [ "jsonschema", "prettyplease", diff --git a/rust_snuba/Cargo.toml b/rust_snuba/Cargo.toml index ba0f3f319e..402739c8eb 100644 --- a/rust_snuba/Cargo.toml +++ b/rust_snuba/Cargo.toml @@ -33,7 +33,7 @@ pyo3 = { version = "0.18.1", features = ["chrono"] } reqwest = { version = "0.11.11", features = ["stream"] } rust_arroyo = { version = "*", git = "https://github.com/getsentry/arroyo" } sentry = { version = "0.32.0", features = ["anyhow", "tracing"] } -sentry-kafka-schemas = "0.1.90" +sentry-kafka-schemas = "0.1.103" serde = { version = "1.0", features = ["derive"] } serde_json = { version = "1.0" } thiserror = "1.0" diff --git a/rust_snuba/src/processors/snapshots/rust_snuba__processors__tests__schemas@snuba-metrics-summaries-MetricsSummariesMessageProcessor-snuba-metrics-summaries__1__only_count.json.snap b/rust_snuba/src/processors/snapshots/rust_snuba__processors__tests__schemas@snuba-metrics-summaries-MetricsSummariesMessageProcessor-snuba-metrics-summaries__1__only_count.json.snap new file mode 100644 index 0000000000..9362d99371 --- /dev/null +++ b/rust_snuba/src/processors/snapshots/rust_snuba__processors__tests__schemas@snuba-metrics-summaries-MetricsSummariesMessageProcessor-snuba-metrics-summaries__1__only_count.json.snap @@ -0,0 +1,42 @@ +--- +source: src/processors/mod.rs +description: "{\n \"duration_ms\": 1000,\n \"end_timestamp\": 1691105878.72,\n \"group\": \"deadbeefdeadbeef\",\n \"is_segment\": false,\n \"mri\": \"c:sentry.events.outcomes@none\",\n \"project_id\": 1,\n \"received\": 169110587919.123,\n \"retention_days\": 90,\n \"segment_id\": \"deadbeefdeadbeef\",\n \"span_id\": \"deadbeefdeadbeef\",\n \"trace_id\": \"deadbeefdeadbeefdeadbeefdeadbeef\",\n \"count\": 1,\n \"tags\": {\n \"category\": \"error\",\n \"environment\": \"unknown\",\n \"event_type\": \"error\",\n \"outcome\": \"accepted\",\n \"release\": \"backend@2af74c237fbd61489a1ccc46650f4f85befaf8b8\",\n \"topic\": \"outcomes-billing\",\n \"transaction\": \"sentry.tasks.store.save_event\"\n }\n}\n" +expression: snapshot_payload +--- +[ + { + "count": 1, + "deleted": 0, + "duration_ms": 1000, + "end_timestamp": 1691105878, + "group": 16045690984833335023, + "is_segment": 0, + "max": 0.0, + "metric_mri": "c:sentry.events.outcomes@none", + "min": 0.0, + "project_id": 1, + "retention_days": 90, + "segment_id": 16045690984833335023, + "span_id": 16045690984833335023, + "sum": 0.0, + "tags.key": [ + "category", + "environment", + "event_type", + "outcome", + "release", + "topic", + "transaction" + ], + "tags.value": [ + "error", + "unknown", + "error", + "accepted", + "backend@2af74c237fbd61489a1ccc46650f4f85befaf8b8", + "outcomes-billing", + "sentry.tasks.store.save_event" + ], + "trace_id": "deadbeefdeadbeefdeadbeefdeadbeef" + } +] diff --git a/rust_snuba/src/processors/snapshots/rust_snuba__processors__tests__snuba-metrics-summaries-.snap b/rust_snuba/src/processors/snapshots/rust_snuba__processors__tests__snuba-metrics-summaries-.snap new file mode 100644 index 0000000000..d848a8f8ea --- /dev/null +++ b/rust_snuba/src/processors/snapshots/rust_snuba__processors__tests__snuba-metrics-summaries-.snap @@ -0,0 +1,12 @@ +--- +source: src/processors/mod.rs +expression: diff +--- +[ + Change { + path: "", + change: RequiredAdd { + property: "count", + }, + }, +]