Skip to content

Commit 0989cd9

Browse files
authored
Add TracingProcessor export to __init__.py (#192)
# Summary This adds the missing TracingProcessor export to __init__.py. # Behavior When trying to add a custom tracing processor, the TracingProcessor importing fails with not found error when trying the example usage proposed in issue #164 Specifically this line throws the error: `add_trace_processor(MyTracingProcessor("output"))` # Expected Behavior Inspecting the init file, simply the import/export was missing. Adding these made the example code work for me # Test plan Local dev of example code in #164 # Issue number #164 # Checks None
2 parents a839035 + 1f58528 commit 0989cd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/agents/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
SpanData,
7474
SpanError,
7575
Trace,
76+
TracingProcessor,
7677
add_trace_processor,
7778
agent_span,
7879
custom_span,
@@ -208,6 +209,7 @@ def enable_verbose_stdout_logging():
208209
"set_tracing_disabled",
209210
"trace",
210211
"Trace",
212+
"TracingProcessor",
211213
"SpanError",
212214
"Span",
213215
"SpanData",

0 commit comments

Comments
 (0)