Repository navigation
feat(promptflow): trace Microsoft Prompt flow, zero-code - #733
Merged
Merged
Conversation
…s, streams and errors
…s and streams; register zero-code auto-instrumentation
…native content and fail-closed hooks
…ath, fail closed on missing hooks, record LLM request parameters
…nai, httpx) in CI
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.
What
New
traceAI-promptflowpackage: tracing for Microsoft Prompt flow (promptflow-tracing>=1.12.0,<2), also registered in zero-code auto-instrumentation (fi-instrument/FI_AUTO_INSTRUMENT=truepicks it up whenpromptflowis installed).@tracefunctions TOOL spans, and LLM / embedding / retrieval calls get their own span kinds. Request model and parameters are recorded on LLM and embedding spans.promptflow.*module that imported a hook by name is patched too (for example Prompty inpromptflow.core._flow).inputs,output,prompt.template,prompt.variables,promptflow.*events, exception messages and status text) whichever code path writes them. Content reaches traceAI only through the maskedinput.value/output.valueunder the hide settings.instrument()setsPF_DISABLE_TRACING=falseunless already set. Child processes (batch workers) inherit that, but not the patches, so they must callinstrument()themselves (documented).Release wiring: release-please config and manifest (0.1.0), the PyPI bootstrap list, the auto-instrumentation registry, a CI workflow (1.12.0 on Python 3.10, latest on 3.13, offline), and the docs tables.
Tests
Offline. Python 3.10 and 3.12 with promptflow 1.12.0 and 1.18.5 (and 3.13 with 1.18.5). Covered: flows, nodes, LLM calls, streams, errors, and a real Prompty call under
hide_inputs(no template, variables or event exported). Also covered: masking of native content and the fail-closed paths.