Implement Phase 1H non-stream safety parity across OpenLLMetry fork packages - #4
Merged
manas-fortifyroot merged 1 commit intoMar 17, 2026
Conversation
manas-fortifyroot
deleted the
feature/phase-1h-nonstream-safety-parity-20260317
branch
March 17, 2026 14:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR completes the agreed Phase 1H non-stream safety scope in the FR OpenLLMetry fork.
It adds non-stream prompt/completion safety handling for the remaining in-scope leaf invocation packages, the required framework suppression layers, and LiteLLM without requiring a LiteLLM fork.
What Changed
alephalphabedrockgroqmistralaiollamareplicatesagemakertogethertransformersvertexaiwatsonxwriterlangchainllamaindexopentelemetry-instrumentation-litellmtraceloop-sdkinstrument discovery and initialization.safety.pyWhy
Provider/leaf-level safety from the original 4 packages was not sufficient for the rest of the agreed non-stream scope.
In particular:
langchainandllamaindexcan create framework spans that bypass downstream provider-level hooksFixes Included From Critical Review
This PR also includes the follow-up fixes and regressions discovered during critical self-review, including:
BaseLLMwrapper coverage gaptext_completion/atext_completionTesting
Validated with:
fr-openllmetry-py/scripts/run-tests.sh --safetyLatest clean run result:
Packages: total=36 passed=21 failed=0 install_failed=0 skipped=15Also revalidated the affected package slices during the review/fix passes.