File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ def __init__(self):
2222
2323 def on_trace_start(self, trace):
2424 self.active_traces[trace.trace_id] = trace
25-
25+
2626 def on_trace_end(self, trace):
2727 # Process completed trace
2828 del self.active_traces[trace.trace_id]
29-
29+
3030 def on_span_start(self, span):
3131 self.active_spans[span.span_id] = span
32-
32+
3333 def on_span_end(self, span):
3434 # Process completed span
3535 del self.active_spans[span.span_id]
@@ -86,7 +86,7 @@ def on_span_start(self, span: "Span[Any]") -> None:
8686 span: The span that started. Contains operation details and context.
8787
8888 Notes:
89- - Called synchronously on span start
89+ - Called synchronously on span start
9090 - Should return quickly to avoid blocking execution
9191 - Spans are automatically nested under current trace/span
9292 """
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ class NoOpSpan(Span[TSpanData]):
180180 Args:
181181 span_data: The operation-specific data for this span.
182182 """
183-
183+
184184 __slots__ = ("_span_data" , "_prev_span_token" )
185185
186186 def __init__ (self , span_data : TSpanData ):
Original file line number Diff line number Diff line change 1313class Trace (abc .ABC ):
1414 """A complete end-to-end workflow containing related spans and metadata.
1515
16- A trace represents a logical workflow or operation (e.g., "Customer Service Query"
17- or "Code Generation") and contains all the spans (individual operations) that occur
16+ A trace represents a logical workflow or operation (e.g., "Customer Service Query"
17+ or "Code Generation") and contains all the spans (individual operations) that occur
1818 during that workflow.
1919
2020 Example:
@@ -127,7 +127,7 @@ def export(self) -> dict[str, Any] | None:
127127
128128class NoOpTrace (Trace ):
129129 """A no-op implementation of Trace that doesn't record any data.
130-
130+
131131 Used when tracing is disabled but trace operations still need to work.
132132 Maintains proper context management but doesn't store or export any data.
133133
You can’t perform that action at this time.
0 commit comments