Skip to content

SDK support for retrieving historical traces #793

Open
@paulsengh

Description

@paulsengh

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.

Activity

bakikucukcakiroglu

bakikucukcakiroglu commented on May 31, 2025

@bakikucukcakiroglu

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

rm-openai commented on Jun 2, 2025

@rm-openai
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @paulsengh@bakikucukcakiroglu@rm-openai

        Issue actions

          SDK support for retrieving historical traces · Issue #793 · openai/openai-agents-python