Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
Signed-off-by: Sylvain Hellegouarch <sh@defuze.org>
  • Loading branch information
Lawouach committed Nov 9, 2023
1 parent 7cce5e0 commit 6734666
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chaostracing/oltp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from chaoslib.run import EventHandlerRegistry, RunEventHandler
from chaoslib.types import Activity, Configuration, Experiment, Journal, Run, Secrets
from logzero import logger
from opentelemetry import trace
from opentelemetry import baggage, trace
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter

try:
Expand Down Expand Up @@ -149,7 +149,7 @@ def __init__(self) -> None:
self.current_span = None

def started(self, experiment: Experiment, journal: Journal) -> None:
logger.debug("Starting capturing OLTP traces")
logger.debug("Starting capturing OpenTelemetry traces")
stack = ExitStack()
span = stack.enter_context(new_span("experiment"))
span.set_attribute("chaostoolkit.experiment.title", experiment.get("title"))
Expand All @@ -160,7 +160,7 @@ def started(self, experiment: Experiment, journal: Journal) -> None:
self.current_span = span

def finish(self, journal: Journal) -> None:
logger.debug("Stopping capturing OLTP traces")
logger.debug("Stopping capturing OpenTelemetry traces")

span = self.root_span
self.root_span = None
Expand All @@ -170,7 +170,7 @@ def finish(self, journal: Journal) -> None:

self.root_stack.close()

logger.debug("Finished capturing OLTP traces")
logger.debug("Finished capturing OpenTelemetry traces")

def interrupted(self, experiment: Experiment, journal: Journal) -> None:
self.root_span.set_attribute("chaostoolkit.experiment.interrupted", True)
Expand Down

0 comments on commit 6734666

Please sign in to comment.