Skip to content

Commit dab1d3e

Browse files
committed
fix: Feature flagging
1 parent 2c24a6f commit dab1d3e

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

relay-general/src/protocol/transaction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::types::{Annotated, Empty, ErrorKind, FromValue, IntoValue, SkipSerial
77
/// Describes how the name of the transaction was determined.
88
#[derive(Clone, Debug, Eq, PartialEq)]
99
#[cfg_attr(feature = "jsonschema", derive(schemars::JsonSchema))]
10-
#[schemars(rename_all = "kebab-case")]
10+
#[cfg_attr(feature = "jsonschema", schemars(rename_all = "kebab-case"))]
1111
pub enum TransactionSource {
1212
/// User-defined name set through `set_transaction_name`.
1313
Custom,
@@ -24,7 +24,7 @@ pub enum TransactionSource {
2424
/// This is the default value set by Relay for legacy SDKs.
2525
Unknown,
2626
/// Any other unknown source that is not explicitly defined above.
27-
#[schemars(skip)]
27+
#[cfg_attr(feature = "jsonschema", schemars(skip))]
2828
Other(String),
2929
}
3030

relay-general/tests/snapshots/test_fixtures__event_schema.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2853,7 +2853,6 @@ expression: event_json_schema()
28532853
"enum": [
28542854
"custom",
28552855
"url",
2856-
"url-fallback",
28572856
"route",
28582857
"view",
28592858
"component",

relay-server/src/actors/envelopes.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use relay_general::processor::{process_value, ProcessingState};
2929
use relay_general::protocol::{
3030
self, Breadcrumb, ClientReport, Csp, Event, EventId, EventType, ExpectCt, ExpectStaple, Hpkp,
3131
IpAddr, LenientString, Metrics, RelayInfo, SecurityReportType, SessionAggregates,
32-
SessionAttributes, SessionUpdate, Timestamp, UserReport, Values,
32+
SessionAttributes, SessionUpdate, Timestamp, TransactionSource, UserReport, Values,
3333
};
3434
use relay_general::store::ClockDriftProcessor;
3535
use relay_general::types::{Annotated, Array, FromValue, Object, ProcessingAction, Value};
@@ -66,7 +66,6 @@ use {
6666
crate::service::ServerErrorKind,
6767
crate::utils::{EnvelopeLimiter, ErrorBoundary},
6868
failure::ResultExt,
69-
relay_general::protocol::TransactionSource,
7069
relay_general::store::{GeoIpLookup, StoreConfig, StoreProcessor},
7170
relay_quotas::{RateLimitingError, RedisRateLimiter},
7271
symbolic_unreal::{Unreal4Error, Unreal4ErrorKind},

relay-server/src/statsd.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ pub enum RelayCounters {
453453
/// - `source`: The source of the transaction name on the client. See the [transaction source
454454
/// documentation](https://develop.sentry.dev/sdk/event-payloads/properties/transaction_info/)
455455
/// for all valid values.
456-
#[cfg(feature = "processing")]
457456
EventTransactionSource,
458457
/// Number of HTTP requests reaching Relay.
459458
Requests,

0 commit comments

Comments
 (0)