Skip to content

Commit

Permalink
Fix import of opentelemetry.trace
Browse files Browse the repository at this point in the history
  • Loading branch information
t-persson committed Nov 21, 2024
1 parent b6babc9 commit 190213a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/environment_provider/environment_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 190213a

Please sign in to comment.