Skip to content

[Fix]: Get logger from tracing folder instead of agents folder #839

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cerebrai
Copy link

The SDK is supposed to have two loggers:

  1. The "openai.agents" logger imported from agents/logger.py
  2. The "openai.agents.tracing" logger imported from agents/tracing/logger.py

The code in the tracing folder is importing the logger from the agents folder instead of the one in the tracing folder.

This pull request resolves the issue by importing the logger from the correct location for the following files:

  1. agents/tracing/create.py
  2. agents/tracing/processors.py
  3. agents/tracing/scope.py
  4. agents/tracing/setup.py
  5. agents/tracing/traces.py
  6. agents/tracing/spans.py

…mporting from agents/tracing/logger.py instead of agents/logger.py
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.

1 participant