Skip to content

chore(vendor): sync OpenAI streaming latency span attrs - #46

Merged
sayonfortify merged 1 commit into
mainfrom
chore/vendor-openai-streaming-latency-span-attrs
Jun 18, 2026
Merged

chore(vendor): sync OpenAI streaming latency span attrs#46
sayonfortify merged 1 commit into
mainfrom
chore/vendor-openai-streaming-latency-span-attrs

Conversation

@sayonfortify

Copy link
Copy Markdown
Contributor

Carries FortifyRoot/openllmetry-py#34 into the vendored OpenAI instrumentation.

What changed:

  • Syncs OpenAI streaming TTFT/STTG span attributes into _vendor.
  • Preserves existing Mimir histogram recording.
  • First-token detection is independent of histogram availability, so tracing/RDS span attrs work even when metrics histograms are disabled.
  • Empty streams still set neither attr, preserving nullable RDS semantics.

Scope:

  • Single vendored file only.
  • No release/tag/PyPI work.
  • No unrelated vendor churn or VENDOR_MANIFEST update in this pre-release sync.

Validation:

  • /Users/sayondutta/opt/anaconda3/envs/py3.12/bin/python -m py_compile src/fortifyroot/_vendor/opentelemetry/instrumentation/openai/shared/chat_wrappers.py
  • git diff --check clean.

Source PR merged first: FortifyRoot/openllmetry-py#34.

@sayonfortify
sayonfortify merged commit b98c7f2 into main Jun 18, 2026
6 checks passed
@sayonfortify
sayonfortify deleted the chore/vendor-openai-streaming-latency-span-attrs branch June 18, 2026 19:57
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