Skip to content

Commit

Permalink
datadog: fix add_event
Browse files Browse the repository at this point in the history
  • Loading branch information
naisanzaa committed Apr 13, 2024
1 parent b56cde3 commit 3f30bb5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions automon/integrations/openTelemetryWrapper/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ async def start_producer(self):

async def test(self):
with self.config.tracer.start_as_current_span(name='rootSpan') as trace_root:
self.add_event('AAAAAAAA')
self.config.opentelemetry.trace.get_current_span().add_event('AAAAAAAA')

with self.config.tracer.start_as_current_span(name='childSpan') as trace_child:
self.add_event('AAAAAAAA')
self.add_event('BBBBBBBB')
self.config.opentelemetry.trace.get_current_span().add_event('AAAAAAAA')
self.config.opentelemetry.trace.get_current_span().add_event('BBBBBBBB')

self.add_event('BBBBBBBB')
self.config.opentelemetry.trace.get_current_span().add_event('BBBBBBBB')

return True

Expand Down

0 comments on commit 3f30bb5

Please sign in to comment.