From a99d6eba945d154cbe343560cf8cb73beba2d5e3 Mon Sep 17 00:00:00 2001 From: Brendan Hy Date: Fri, 1 May 2026 16:19:11 -0700 Subject: [PATCH 1/2] chore(billing-platform): Add millisecond base unit --- proto/sentry_protos/billing/v1/common/v1/unit_info.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/proto/sentry_protos/billing/v1/common/v1/unit_info.proto b/proto/sentry_protos/billing/v1/common/v1/unit_info.proto index 84753066..4a6eee66 100644 --- a/proto/sentry_protos/billing/v1/common/v1/unit_info.proto +++ b/proto/sentry_protos/billing/v1/common/v1/unit_info.proto @@ -8,6 +8,7 @@ enum BaseUnit { BASE_UNIT_BYTE = 1; BASE_UNIT_COUNT = 2; BASE_UNIT_SECOND = 3; + BASE_UNIT_MILLISECOND = 4; } // Unit information for measurement and conversion. From 841f7340315668bc6077a41923a6700a5dd32d8a Mon Sep 17 00:00:00 2001 From: "getsantry[bot]" <66042841+getsantry[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 23:20:08 +0000 Subject: [PATCH 2/2] chore: Regenerate Rust bindings --- Cargo.lock | 2 +- rust/src/sentry_protos.billing.v1.common.v1.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 059871c8..eaeef325 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -717,7 +717,7 @@ checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "sentry_protos" -version = "0.8.23" +version = "0.8.24" dependencies = [ "prost", "prost-types", diff --git a/rust/src/sentry_protos.billing.v1.common.v1.rs b/rust/src/sentry_protos.billing.v1.common.v1.rs index e0d91b61..f9e7e97e 100644 --- a/rust/src/sentry_protos.billing.v1.common.v1.rs +++ b/rust/src/sentry_protos.billing.v1.common.v1.rs @@ -158,6 +158,7 @@ pub enum BaseUnit { Byte = 1, Count = 2, Second = 3, + Millisecond = 4, } impl BaseUnit { /// String value of the enum field names used in the ProtoBuf definition. @@ -170,6 +171,7 @@ impl BaseUnit { Self::Byte => "BASE_UNIT_BYTE", Self::Count => "BASE_UNIT_COUNT", Self::Second => "BASE_UNIT_SECOND", + Self::Millisecond => "BASE_UNIT_MILLISECOND", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -179,6 +181,7 @@ impl BaseUnit { "BASE_UNIT_BYTE" => Some(Self::Byte), "BASE_UNIT_COUNT" => Some(Self::Count), "BASE_UNIT_SECOND" => Some(Self::Second), + "BASE_UNIT_MILLISECOND" => Some(Self::Millisecond), _ => None, } }