Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

905 B
Raw Blame
pub const CYMBAL_RESOLUTION_MAX_MESSAGE_SIZE_BYTES: usize = 8 * 1024 * 1024;

pub mod cymbal {
    pub mod resolution {
        pub mod v1 {
            tonic::include_proto!("cymbal.resolution.v1");

            impl ErrorKind {
                /// Bounded metric label for this error kind, shared by the
                /// remote client and the resolution service so their `kind=`
                /// labels never drift.
                pub fn metric_label(self) -> &'static str {
                    match self {
                        ErrorKind::Unspecified => "unspecified",
                        ErrorKind::InvalidPayload => "invalid_payload",
                        ErrorKind::Poison => "poison",
                        ErrorKind::Unhandled => "unhandled",
                        ErrorKind::Overloaded => "overloaded",
                    }
                }
            }
        }
    }
}