Skip to content

OpenAI trace fixes - #934

Merged
tconley1428 merged 2 commits into
mainfrom
openai_trace_fixes
Jul 1, 2025
Merged

tconley1428 merged 2 commits into
mainfrom
openai_trace_fixes

Conversation

@tconley1428

Copy link
Copy Markdown
Contributor

What was changed

Build the trace processor out of the more specific base class. Don't create a fake parent span. Add a trace intercepter option for auto closing spans for processors which don't support distributed tracing.

Why?

Puts us in a better place for supporting third party trace processors

Checklist

  1. Closes

  2. How was this tested:
    Ran locally with braintrust processor. That still didn't support distributed traces, but this unblocks changes there.

  3. Any docs updates needed?

@tconley1428
tconley1428 requested a review from a team as a code owner July 1, 2025 19:41
@tconley1428
tconley1428 merged commit 83d2ae4 into main Jul 1, 2025
@tconley1428
tconley1428 deleted the openai_trace_fixes branch July 1, 2025 22:13
tconley1428 added a commit that referenced this pull request Aug 28, 2025
* Don't create fake parent span, use actual processor base class

* Remove print
brianstrauch pushed a commit to temporalio/ai-integrations that referenced this pull request Sep 3, 2026
* Don't create fake parent span, use actual processor base class

* Remove print

Migrated-From: temporalio/sdk-python@83d2ae4
brianstrauch pushed a commit to temporalio/ai-integrations that referenced this pull request Sep 3, 2026
* Don't create fake parent span, use actual processor base class

* Remove print

Migrated-From: temporalio/sdk-python@83d2ae4
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