Skip to content

SDK support for retrieving historical traces #793

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
paulsengh opened this issue May 30, 2025 · 2 comments
Open

SDK support for retrieving historical traces #793

paulsengh opened this issue May 30, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@paulsengh
Copy link

The Agents SDK currently provides no way to retrieve traces after they’ve been sent to OpenAI’s servers, forcing users to resort to scraping the dashboard if they didn’t persist them elsewhere. Nor does there seem to be an export button in the platform UI. While custom tracing processors offer a solution for future trace storage, there should be a supported way to access historical traces that were already ingested but not externally persisted.

@paulsengh paulsengh added the enhancement New feature or request label May 30, 2025
@bakikucukcakiroglu
Copy link

bakikucukcakiroglu commented May 31, 2025

You can use custom tracing processors to send your traces to anywhere else from OpenAI's backend. So you can use them anytime anywhere.

Also Responses API keeps the responses for 30 days. I'm not sure but there may be a limit for traces, too. So storing your traces in your own db may be helpful.

@rm-openai
Copy link
Collaborator

@paulsengh makes sense. If there were an export button - how many traces would you want to export? e.g. one page at a time? Jus trying to get a sense for how you'd use an API and/or export button

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants