Skip to content

Commit

Permalink
Remove JsonSchema trait where it wasn't fully supported
Browse files Browse the repository at this point in the history
  • Loading branch information
phacops committed Jul 25, 2024
1 parent 1016748 commit 3e5e265
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion relay-dynamic-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ publish = false

[features]
default = []
jsonschema = []

[lints]
workspace = true
Expand Down
4 changes: 0 additions & 4 deletions relay-dynamic-config/src/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ use crate::{defaults, ErrorBoundary, MetricExtractionGroup, MetricExtractionGrou
/// [`ProjectConfig`](crate::ProjectConfig)s small.
#[derive(Default, Clone, Debug, Serialize, Deserialize)]
#[serde(default, rename_all = "camelCase")]
#[cfg_attr(feature = "jsonschema", derive(JsonSchema))]
pub struct GlobalConfig {
/// Configuration for measurements normalization.
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -106,7 +105,6 @@ fn is_err_or_empty(filters_config: &ErrorBoundary<GenericFiltersConfig>) -> bool
/// All options passed down from Sentry to Relay.
#[derive(Default, Clone, Debug, Serialize, Deserialize, PartialEq)]
#[serde(default)]
#[cfg_attr(feature = "jsonschema", derive(JsonSchema))]
pub struct Options {
/// List of platform names for which we allow using unsampled profiles for the purpose
/// of improving profile (function) metrics
Expand Down Expand Up @@ -235,7 +233,6 @@ pub struct Options {
/// Kill switch for controlling the cardinality limiter.
#[derive(Default, Clone, Copy, Debug, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "lowercase")]
#[cfg_attr(feature = "jsonschema", derive(JsonSchema))]
pub enum CardinalityLimiterMode {
/// Cardinality limiter is enabled.
#[default]
Expand All @@ -251,7 +248,6 @@ pub enum CardinalityLimiterMode {

/// Configuration container to control [`BucketEncoding`] per namespace.
#[derive(Debug, Clone, Copy, Default, Serialize, Deserialize, PartialEq)]
#[cfg_attr(feature = "jsonschema", derive(JsonSchema))]
#[serde(default)]
pub struct BucketEncodings {
transactions: BucketEncoding,
Expand Down
3 changes: 1 addition & 2 deletions relay-event-normalization/src/normalize/user_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ impl<'a> RawUserAgentInfo<&'a str> {
/// The client hint variable names mirror the name of the "SEC-CH" headers.
///
/// See <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#user_agent_client_hints>
#[derive(Clone, Debug, Default, PartialEq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Clone, Debug, Default, Deserialize, Serialize, PartialEq)]
pub struct ClientHints<S>
where
S: Default + AsRef<str>,
Expand Down

0 comments on commit 3e5e265

Please sign in to comment.