diff --git a/src/environment_provider/environment_provider.py b/src/environment_provider/environment_provider.py index 6516939..f622d23 100644 --- a/src/environment_provider/environment_provider.py +++ b/src/environment_provider/environment_provider.py @@ -37,7 +37,7 @@ from etos_lib.kubernetes.schemas import EnvironmentRequest as EnvironmentRequestSchema from jsontas.jsontas import JsonTas from packageurl import PackageURL -import opentelemetry +from opentelemetry import trace from opentelemetry.trace import SpanKind from execution_space_provider.execution_space import ExecutionSpace @@ -94,7 +94,7 @@ def __init__(self, suite_runner_ids: Optional[list[str]] = None) -> None: self.suite_id = self.environment_provider_config.requests[0].spec.identifier self.logger.info("Initializing EnvironmentProvider.") - self.tracer = opentelemetry.trace.get_tracer(__name__) # type:ignore + self.tracer = trace.get_tracer(__name__) self.suite_runner_ids = suite_runner_ids