Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TracingProcessor export to __init__.py #192

Merged

Conversation

vincenzodomina
Copy link
Contributor

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

@rm-openai rm-openai merged commit 0989cd9 into openai:main Mar 17, 2025
5 checks passed
nakasy000 pushed a commit to nakasy000/openai-agents-python that referenced this pull request Mar 27, 2025
# 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 openai#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 openai#164

# Issue number
openai#164

# Checks
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants