File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
opentelemetry-instrumentation/src/opentelemetry/instrumentation Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 162162OTEL_SEMCONV_STABILITY_OPT_IN = "OTEL_SEMCONV_STABILITY_OPT_IN"
163163
164164
165- class _OpenTelemetryStabilitySignalType ( Enum ) :
165+ class _OpenTelemetryStabilitySignalType :
166166 HTTP = "http"
167167 DATABASE = "database"
168168 GEN_AI = "gen_ai"
@@ -212,6 +212,12 @@ def _initialize(cls):
212212
213213 opt_in_list = [s .strip () for s in opt_in .split ("," )]
214214
215+ cls ._OTEL_SEMCONV_STABILITY_SIGNAL_MAPPING [
216+ _OpenTelemetryStabilitySignalType .HTTP
217+ ] = cls ._filter_mode (
218+ opt_in_list , _StabilityMode .HTTP , _StabilityMode .HTTP_DUP
219+ )
220+
215221 cls ._OTEL_SEMCONV_STABILITY_SIGNAL_MAPPING [
216222 _OpenTelemetryStabilitySignalType .GEN_AI
217223 ] = cls ._filter_mode (
@@ -227,7 +233,7 @@ def _initialize(cls):
227233 _StabilityMode .DATABASE ,
228234 _StabilityMode .DATABASE_DUP ,
229235 )
230-
236+ print ( cls . _OTEL_SEMCONV_STABILITY_SIGNAL_MAPPING )
231237 cls ._initialized = True
232238
233239 @staticmethod
You can’t perform that action at this time.
0 commit comments