Skip to content

Commit

Permalink
Fixing linting of tracing/datadog.py (#8434)
Browse files Browse the repository at this point in the history
  • Loading branch information
silvanocerza authored Oct 2, 2024
1 parent ee89f6a commit bdc6b2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions haystack/tracing/datadog.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ def __init__(self, tracer: "ddtrace.Tracer") -> None:
def trace(self, operation_name: str, tags: Optional[Dict[str, Any]] = None) -> Iterator[Span]:
"""Activate and return a new span that inherits from the current active span."""
with self._tracer.trace(operation_name) as span:
span = DatadogSpan(span)
custom_span = DatadogSpan(span)
if tags:
span.set_tags(tags)
custom_span.set_tags(tags)

yield span
yield custom_span

def current_span(self) -> Optional[Span]:
"""Return the current active span"""
Expand Down

0 comments on commit bdc6b2e

Please sign in to comment.