diff --git a/opentelemetry-instrumentation/src/opentelemetry/instrumentation/utils.py b/opentelemetry-instrumentation/src/opentelemetry/instrumentation/utils.py index 2c2b860993..67f44a5625 100644 --- a/opentelemetry-instrumentation/src/opentelemetry/instrumentation/utils.py +++ b/opentelemetry-instrumentation/src/opentelemetry/instrumentation/utils.py @@ -198,7 +198,10 @@ def _initialize(cls): if opt_in_list: # Process http opt-in # http/dup takes priority over http - if _OpenTelemetryStabilityMode.HTTP_DUP.value in opt_in_list: + if ( + _OpenTelemetryStabilityMode.HTTP_DUP.value + in opt_in_list + ): http_opt_in = _OpenTelemetryStabilityMode.HTTP_DUP elif _OpenTelemetryStabilityMode.HTTP.value in opt_in_list: http_opt_in = _OpenTelemetryStabilityMode.HTTP