@@ -8,6 +8,7 @@ pub const GRADUATED_FEATURE_FLAGS: &[Feature] = &[
88 Feature :: UserReportV2Ingest ,
99 Feature :: IngestUnsampledProfiles ,
1010 Feature :: ScrubMongoDbDescriptions ,
11+ Feature :: DeprecatedExtractSpansFromEvent ,
1112] ;
1213
1314/// Features exposed by project config.
@@ -90,11 +91,6 @@ pub enum Feature {
9091 /// Serialized as `organizations:continuous-profiling-beta-ingest`.
9192 #[ serde( rename = "organizations:continuous-profiling-beta-ingest" ) ]
9293 ContinuousProfilingBetaIngest ,
93- /// When enabled, spans will be extracted from a transaction.
94- ///
95- /// Serialized as `organizations:indexed-spans-extraction`.
96- #[ serde( rename = "organizations:indexed-spans-extraction" ) ]
97- ExtractSpansFromEvent ,
9894 /// Enable log ingestion for our log product (this is not internal logging).
9995 ///
10096 /// Serialized as `organizations:ourlogs-ingestion`.
@@ -134,6 +130,10 @@ pub enum Feature {
134130 #[ doc( hidden) ]
135131 #[ serde( rename = "projects:span-metrics-extraction-addons" ) ]
136132 DeprecatedExtractAddonsSpanMetricsFromEvent ,
133+ /// This feature has graduated and is hard-coded for external Relays.
134+ #[ doc( hidden) ]
135+ #[ serde( rename = "organizations:indexed-spans-extraction" ) ]
136+ DeprecatedExtractSpansFromEvent ,
137137 /// Forward compatibility.
138138 #[ doc( hidden) ]
139139 #[ serde( other) ]
@@ -154,11 +154,6 @@ impl FeatureSet {
154154 pub fn has ( & self , feature : Feature ) -> bool {
155155 self . 0 . contains ( & feature)
156156 }
157-
158- /// Returns `true` if any spans are produced for this project.
159- pub fn produces_spans ( & self ) -> bool {
160- self . has ( Feature :: ExtractSpansFromEvent ) || self . has ( Feature :: StandaloneSpanIngestion )
161- }
162157}
163158
164159impl FromIterator < Feature > for FeatureSet {
0 commit comments