Skip to content

Commit

Permalink
fix: Feature flagging
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer committed Jul 4, 2022
1 parent 2c24a6f commit dab1d3e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions relay-general/src/protocol/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::types::{Annotated, Empty, ErrorKind, FromValue, IntoValue, SkipSerial
/// Describes how the name of the transaction was determined.
#[derive(Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "jsonschema", derive(schemars::JsonSchema))]
#[schemars(rename_all = "kebab-case")]
#[cfg_attr(feature = "jsonschema", schemars(rename_all = "kebab-case"))]
pub enum TransactionSource {
/// User-defined name set through `set_transaction_name`.
Custom,
Expand All @@ -24,7 +24,7 @@ pub enum TransactionSource {
/// This is the default value set by Relay for legacy SDKs.
Unknown,
/// Any other unknown source that is not explicitly defined above.
#[schemars(skip)]
#[cfg_attr(feature = "jsonschema", schemars(skip))]
Other(String),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2853,7 +2853,6 @@ expression: event_json_schema()
"enum": [
"custom",
"url",
"url-fallback",
"route",
"view",
"component",
Expand Down
3 changes: 1 addition & 2 deletions relay-server/src/actors/envelopes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use relay_general::processor::{process_value, ProcessingState};
use relay_general::protocol::{
self, Breadcrumb, ClientReport, Csp, Event, EventId, EventType, ExpectCt, ExpectStaple, Hpkp,
IpAddr, LenientString, Metrics, RelayInfo, SecurityReportType, SessionAggregates,
SessionAttributes, SessionUpdate, Timestamp, UserReport, Values,
SessionAttributes, SessionUpdate, Timestamp, TransactionSource, UserReport, Values,
};
use relay_general::store::ClockDriftProcessor;
use relay_general::types::{Annotated, Array, FromValue, Object, ProcessingAction, Value};
Expand Down Expand Up @@ -66,7 +66,6 @@ use {
crate::service::ServerErrorKind,
crate::utils::{EnvelopeLimiter, ErrorBoundary},
failure::ResultExt,
relay_general::protocol::TransactionSource,
relay_general::store::{GeoIpLookup, StoreConfig, StoreProcessor},
relay_quotas::{RateLimitingError, RedisRateLimiter},
symbolic_unreal::{Unreal4Error, Unreal4ErrorKind},
Expand Down
1 change: 0 additions & 1 deletion relay-server/src/statsd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ pub enum RelayCounters {
/// - `source`: The source of the transaction name on the client. See the [transaction source
/// documentation](https://develop.sentry.dev/sdk/event-payloads/properties/transaction_info/)
/// for all valid values.
#[cfg(feature = "processing")]
EventTransactionSource,
/// Number of HTTP requests reaching Relay.
Requests,
Expand Down

0 comments on commit dab1d3e

Please sign in to comment.