unstale

pypi / monocle-apptrace

monocle-apptrace

What changed in monocle-apptrace 0.6 to 0.8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

18 breaking5 security2 deprecations137 new APIs and options1 performance35 behavior and defaults15 tooling76 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

monocle-apptrace 0.8194 changes

Breaking changes 14

  • Span obfuscation replaces inline images, audio, and PDFs with their type and size instead of exporting encoded media verbatim.

    0.8.16release notes

  • Only hosts named in this setting are traced for httpx traffic.

    0.8.16release notes

  • MS Agent Framework agents hosted on Azure AI Foundry now produce complete traces, identify Foundry as their host, and have spans retrievable from Okahu.

    0.8.15release notes

  • setup_test_cases refuses discovery windows larger than this limit instead of silently truncating them; the value comes from the argument, then OKAHU_MAX_FACTS, then defaults to 1000.

    0.8.15release notes

  • Turn spans now record prompt text using the renamed contents field instead of an object representation; the fallback also avoids exporting object reprs.

    0.8.15release notes

  • AWS Bedrock AgentCore trace return now authorizes callers before returning spans; deployments must configure this key or a retrieval callback, and invocations must present the matching retrieval key.

    0.8.13release notes

  • The eval-result matrix no longer has a top-level claim_verdicts column; read it from judge_output instead.

    0.8.12release notes

  • The eval-result matrix no longer has an entity_match_check column.

    0.8.12release notes

  • The eval-result matrix no longer has a hallucination_types column.

    0.8.12release notes

  • The eval-result matrix now stores the judge's structured output verbatim in judge_output; read claim_verdicts from row["judge_output"]["claim_verdicts"].

    0.8.12release notes

  • Requires an explicit bucket or container name when using cloud exporters.

    0.8.11release notes

  • Changes the scope name from agent.invocation to agentic.invocation on invoke, ainvoke, stream, and astream paths.

    0.8.10release notes

  • Replaces MONOCLE_S3_KEY_PREFIX as the S3 file prefix variable.

    0.8.5release notes

  • The S3 prefix variable was renamed to MONOCLE_S3_FILE_PREFIX.

    0.8.5release notes

Security 5

  • A credential named by its payload key, such as api_key, is redacted even when its value lacks recognizable credential text.

    0.8.16release notes

  • If configured obfuscators cannot be loaded, the built-in credentials obfuscator is used rather than silently disabling obfuscation.

    0.8.16release notes

  • Span obfuscation now recognizes and redacts Okahu API keys passed positionally as well as by name.

    0.8.16release notes

  • Sensitive data in data.input and data.output is scrubbed before spans reach exporters; obfuscation is on by default and covers common credentials and secrets.

    0.8.14release notes

  • Exclude a traced method's inputs and/or outputs so sensitive values are not serialized; excluded-output spans still record error_code.

    0.8.12release notes

Deprecations 2

  • Use this renamed environment variable to configure the S3 key prefix; the old name still works with a deprecation warning.

    0.8.3release notesrelease notes

  • This name is deprecated in favor of MONOCLE_S3_FILE_PREFIX, but still works with a warning.

    0.8.3release notesrelease notes

New APIs and options 89

  • Set this to have the A2A runner pull agent spans from Okahu; when unset, it reads the agent's trace file.

    0.8.16release notes

  • Provides the same trace propagation to an agent that calls another agent over A2A.

    0.8.16release notes

  • Group chat and Magentic orchestrations emit routing agentic.invocation spans when the package is installed, including the routed message as input.

    0.8.16release notes

  • Workflow spans identify Vertex AI Agent Engine as the app host and report its full resource name, or the bare engine id when project or location is unset.

    0.8.16release notes

  • Asserts that any named agent was invoked, with optional count constraints across the matched agents.

    0.8.16release notes

  • Asserts that any named tool was invoked, optionally scoped to an agent, with count constraints across the matched tools.

    0.8.16release notes

  • Returns spans a service returned for requests and httpx, including cases where an SDK owns the response.

    0.8.16release notes

  • Asserts that none of the named agents ran; a call to any candidate fails the assertion.

    0.8.16release notes

  • Asserts that none of the named tools ran; a call to any candidate fails the assertion.

    0.8.16release notes

  • Enables logging every scenario-test result to a timestamped file under .monocle/test_results; off by default.

    0.8.16release notes

  • Set to true to log every scenario-test result to a timestamped file under .monocle/test_results; off by default.

    0.8.16release notes

  • Generates multi-turn test conversations from an agent description and goals, including varied users, refusal requests, and red-team attacks.

    0.8.16release notes

  • When the context value is true, instrumented calls still run but emit no spans, unlike MONOCLE_SKIP_EXECUTIONS.

    0.8.16release notes

  • Workflow spans set this to true when their parent came from another process, distinguishing the root of this app's part of a shared trace.

    0.8.16release notes

  • Runs generated scenarios live against an agent as separate pytest cases, with a simulated user and an LLM judge checking success criteria against actual tool calls.

    0.8.16release notes

  • Accepts a testcase for parametrized tests.

    0.8.15release notes

  • Accepts a testcase for parametrized tests.

    0.8.15release notes

  • Accepts a testcase; every eval a case names is graded and all failures are reported together.

    0.8.15release notes

  • Borrows the expected result from a different eval.

    0.8.15release notes

  • Adds a runner for invoking an agent deployed to Azure AI Foundry and retrieving its spans from Okahu; it authenticates with an Entra bearer token and correlates spans using Foundry's trace id.

    0.8.15release notes

  • Input and output assertions accept a testcase for parametrized tests.

    0.8.15release notes

  • The root path / can now be opted into as a health check route and matches the root exactly; it is not a default.

    0.8.15release notes

  • Remote trace retrieval now waits up to this many seconds for spans to reach the backend; the default is 60 seconds instead of a hard-coded 10.

    0.8.15release notes

  • Sets the Okahu API timeout, which defaults to 120 seconds; precedence is explicit argument, environment variable, then default, and unusable values are logged and ignored.

    0.8.15release notes

  • Recorded populations can become parametrizable test cases for eval tuning and A/B testing; parametrized cases are named after the case rather than [testcase0].

    0.8.15release notes

  • Accepts a testcase for parametrized tests.

    0.8.15release notes

  • Builds one FluentTestCase per recorded Okahu fact, or loads a committed JSON array with source="local" for network-free golden datasets.

    0.8.15release notes

  • Provides the workflow name needed to retrieve Foundry runner spans; alternatively, use FOUNDRY_TRACE_WORKFLOW.

    0.8.15release notes

  • Accepts a testcase for parametrized tests; trace sources also accept a start_time/end_time window.

    0.8.15release notes

  • Setting this environment variable to true disables span obfuscation.

    0.8.14release notes

  • Use this environment variable to scope span obfuscation to selected span types.

    0.8.14release notes

  • Configure span obfuscators, including adding PII detection with credentials,presidio or disabling obfuscation with none.

    0.8.14release notes

  • Pass an empty span_obfuscators list to disable span obfuscation.

    0.8.14release notes

  • Implement a custom SpanObfuscator and configure it by its module:ClassName path.

    0.8.14release notes

  • Health-check routes can be replaced via this variable; matching response-body checks are sampled down to one span per reset counter, while requests with params or a body and failing checks are exported.

    0.8.13release notes

  • Add a runner that invokes an agent deployed to AWS Bedrock AgentCore Runtime remotely and retrieves its spans from Okahu by session.

    0.8.12release notes

  • Let runners identify remote spans using a fact other than the trace id.

    0.8.12release notes

  • Use an exclude list in an instrument config entry to omit method inputs and/or outputs from tracing, preventing their serialization.

    0.8.12release notes

  • Configure the ClickHouse span exporter with this connection URL.

    0.8.12release notes

  • When set, an agent deployed to AWS Bedrock AgentCore returns spans in the invocation response; the agentcore runner strips them before returning the response and falls back to session-based retrieval if needed.

    0.8.12release notes

  • Set MONOCLE_EXPORTER=clickhouse to use the new ClickHouse span exporter, configured with MONOCLE_CLICKHOUSE_CONNECTION_URL and installed with the clickhouse extra.

    0.8.12release notes

  • Assertions can be scoped to a single turn of a multi-turn run.

    0.8.12release notes

  • Supports retrieving traces from the agentic app for remote testing.

    0.8.11release notes

  • Captures cache token counts for Anthropic.

    0.8.11release notes

  • Captures cache token counts for Azure AI traces.

    0.8.11release notes

  • Adds support for Haystack 3.x.x.

    0.8.11release notes

  • Captures cached token counts for OpenAI.

    0.8.11release notes

  • Adds Anthropic agents streaming.

    0.8.10release notes

  • Adds a filtered eval flow for built-in and custom templates.

    0.8.10release notes

  • Adds CrewAI streaming.

    0.8.10release notes

  • Adds a CSV-to-fluent test-case adapter to monocle_test_tools.

    0.8.10release notes

  • Adds an opt-in eval-matrix recorder plugin.

    0.8.10release notes

  • Adds Responses API coverage and non-streaming tool-call output.

    0.8.10release notes

  • Implements LiteLLM streaming.

    0.8.10release notes

  • Implements Mistral streaming.

    0.8.10release notes

  • Adds subcommand dispatch to the monocle_test_tools CLI.

    0.8.10release notes

  • Adds a time filter to Okahu evals for improved performance.

    0.8.10release notes

  • Adds a Postgres exporter.

    0.8.10release notes

  • Captures request temperature on inference span metadata.

    0.8.10release notes

  • Adds a generic API to verify any span attribute or entity.

    0.8.10release notes

  • Adds the ability to assert arbitrary span events.

    0.8.10release notes

  • Adds Strands streaming.

    0.8.10release notes

  • Surfaces eval total_tokens.

    0.8.10release notes

  • Added an agentic.session anchor for CrewAI.

    0.8.8release notes

  • Added support for custom templates.

    0.8.8release notes

  • Added CrewAI turn data.input tracing.

    0.8.8release notes

  • Added support for custom-StateGraph I/O.

    0.8.8release notes

  • Added spans for @tool.

    0.8.8release notes

  • Added a turn-collapse rule for the OpenAI Agents SDK.

    0.8.8release notes

  • Added event-driven instrumentation for LlamaIndex Workflow.run.

    0.8.8release notes

  • Adds regex, JSON validity, keyword presence, and exact match evaluations.

    0.8.5release notes

  • Assertions can check specific or total invocation counts for agents and tools.

    0.8.5release notes

  • Configure a file-name prefix for the Azure Blob exporter.

    0.8.5release notesrelease notes

  • Adds a CLI command for summarizing sessions in local trace files.

    0.8.5release notes

  • Adds a CLI command for summarizing local trace files.

    0.8.5release notes

  • Adds instrumentation for LiteLLM async methods.

    0.8.4release notes

  • Adds instrumentation for VS Code Copilot.

    0.8.4release notes

  • Enable console output alongside any configured exporter.

    0.8.3release notesrelease notesrelease notes

  • Configure a file-name prefix for the file exporter.

    0.8.3release notesrelease notesrelease notes

  • Adds browser sign-in for Okahu Cloud during Monocle Agentic CLI setup.

    0.8.3release notes

  • Adds span subtypes for ADK instrumentation.

    0.8.1release notes

  • Enables custom instrumentation through an external configuration file.

    0.8.1release notes

  • Supports setting the span name for custom instrumentation.

    0.8.1release notes

  • Supports a custom startup function for custom instrumentation and uses importlib to preserve namespaces.

    0.8.1release notes

  • Sets a span subtype for Haystack.

    0.8.1release notes

  • Adds a span subtype for LlamaIndex.

    0.8.1release notes

  • Enables fetching traces by scope ID.

    0.8.1release notes

  • Supports providing the workflow name through an environment variable.

    0.8.1release notes

  • Adds Claude Code instrumentation.

    0.8.0release notes

Performance 1

  • Generated scenarios are cached beside the test so later runs do not make a model call.

    0.8.16release notes

Behavior and default changes 29

  • The client is instrumented for trace-context propagation and returned spans, limited to hosts named in MONOCLE_TRACE_PROPAGATATION_URLS.

    0.8.16release notes

  • An explicit off-switch value disables scrubbing; otherwise the built-in obfuscator is used when configured obfuscators cannot be loaded.

    0.8.16release notes

  • Retrieval spans include full retrieved context and truncate only past this character cap, which defaults to 65536.

    0.8.16release notes

  • Passing patterns=list(CREDENTIAL_PATTERNS) turns off inline media obfuscation.

    0.8.16release notes

  • Call this in the agent module so Monocle and Cloud Trace share Google's tracer provider and its per-request flush in Agent Engine.

    0.8.16release notes

  • An empty list explicitly disables scrubbing; otherwise the built-in obfuscator is used when configured obfuscators cannot be loaded.

    0.8.16release notes

  • A fact whose spans fail to load is emitted as a failing test under its own id, with the reason available in load_error.

    0.8.15release notes

  • The LiteLLM metamodel now recognizes ReAct-style text tool calls and extracts their tool name.

    0.8.14release notes

  • The LiteLLM metamodel now recognizes ReAct-style text tool calls and extracts their tool type.

    0.8.14release notes

  • eval_name accepts a built-in eval template name or a custom template JSON file path, so callers need not switch to template_path for custom templates.

    0.8.13release notesrelease notes

  • Report every failing fact with a per-fact breakdown instead of raising on the first one.

    0.8.12release notes

  • When turn_id is unset, turns are auto-numbered per session and the resolved turn id is persisted back onto the turn.

    0.8.12release notes

  • An unrecognized exclusion name warns instead of raising.

    0.8.12release notes

  • Records the test outcome as an Okahu label during cleanup.

    0.8.11release notes

  • Binds the ADK turn scope to the native invocation_id.

    0.8.10release notes

  • Adds changes to OpenAI streaming.

    0.8.10release notes

  • Improves OTLP interoperability for GenAI traces.

    0.8.10release notes

  • Added synchronous stream support for CompiledStateGraph.

    0.8.8release notes

  • LangChain data.input now supports string and dict values.

    0.8.8release notes

  • Added coercion for non-primitive scopes.

    0.8.8release notes

  • Trace files are now idle-based.

    0.8.8release notes

  • FastAPI POST bodies are now captured in HTTP spans.

    0.8.6release notes

  • LiteLLM instrumentation captures response_format in data.input.

    0.8.5release notes

  • Test scopes are propagated to the eval service.

    0.8.5release notes

  • OpenAI inference spans use the generic tool.function tool type.

    0.8.3release notes

  • Sets a span subtype for Azure AI.

    0.8.1release notes

  • Sets inference.decision.span.id for ADK.

    0.8.1release notes

  • Adds the Git branch and repository name to the test run scope.

    0.8.1release notes

  • Custom spans capture arguments and results.

    0.8.0release notes

Tooling 13

  • Adds an A2A test runner, installed with the a2a extra, that drives an agent as an A2A client and joins its spans to the test trace.

    0.8.16release notes

  • The test generator discovers evals configured for an agent and adds matching check_eval assertions, supporting custom templates and searching eval traces beyond 90 days.

    0.8.13release notes

  • Adds a multi-turn test runner with live session persistence.

    0.8.11release notes

  • Adds live Okahu evaluation assertions and eval-source support.

    0.8.11release notes

  • Supports pulling spans for a fact other than trace in the test generator.

    0.8.11release notes

  • Allows multiple runs of a test using pytest-repeat.

    0.8.10release notes

  • Improves the test generator to add additional types of assertions.

    0.8.10release notes

  • Added task tracing for async_execution.

    0.8.8release notes

  • Adds support for tracking code change metrics.

    0.8.5release notes

  • Supports scanning a trace and generating a test trace with assertions.

    0.8.5release notes

  • Adds instrumentation for Copilot CLI.

    0.8.4release notes

  • Adds a linter to validate monocle meta model conformance.

    0.8.4release notes

  • Adds Codex instrumentation so developers can trace Codex usage.

    0.8.1release notes

Fixes and other changes 41

  • The span records the call for current SDK results, including Message results, errors, and tasks without artifacts.

    0.8.16release notes

  • LangChain inference spans record every tool requested by the model, rather than only the first; a single tool call retains its existing shape.

    0.8.16release notes

  • Hugging Face inference spans list tool-call ids, names, and arguments; streamed OpenAI and Hugging Face calls also retain arguments split across chunks.

    0.8.16release notes

  • LangChain inference spans record every tool requested by the model, rather than only the first; a single tool call retains its existing shape.

    0.8.16release notes

  • The span uses the client's Host header when present and brackets an IPv6 socket host in the fallback URL.

    0.8.16release notes

  • An empty result list now reports that the service returned no results for the fact, with the job id and likely causes.

    0.8.16release notes

  • An empty value now falls back to the default.

    0.8.16release notes

  • Failed trace uploads are reported as the failure with the HTTP status or no-response detail, rather than as a later unexpected response format.

    0.8.16release notes

  • Calls in unsampled traces now run without span export instead of failing when span processing encounters a NonRecordingSpan.

    0.8.16release notes

  • Streaming inference now emits a span when the consumer stops reading early; closing after full consumption cannot emit a duplicate span.

    0.8.15release notes

  • A path-like string eval name is now classified as a custom template, matching check_eval, rather than being requested as a built-in template.

    0.8.15release notes

  • The runner passes memory= only to callables that accept it and binds it with functools.partial for run_in_executor, which takes no kwargs.

    0.8.15release notes

  • An unset API key is no longer stripped unguarded.

    0.8.15release notes

  • An endpoint environment variable that is set but empty now falls back to the default endpoint instead of producing a scheme-less URL.

    0.8.15release notes

  • Okahu enumerators now walk every page, and page size is bounds-checked locally instead of producing an opaque HTTP 400.

    0.8.15release notes

  • Wrappers no longer stop the scope token twice, preventing a cleanup error from masking the test's original exception.

    0.8.15release notes

  • Expected-failure marks now apply correctly to fluent assertions, avoiding hard failures for intentional failures and passes when a test silently stops failing.

    0.8.15release notes

  • Resetting span processors now re-appends the trace-return processor, so trace return is not silently dropped on an initialized instrumentor.

    0.8.15release notes

  • Span obfuscation preserves sentence punctuation after an unquoted credential value while still treating dots inside the value as part of the secret.

    0.8.14release notes

  • Fixes the Haystack sentence transformer import and library version.

    0.8.11release notes

  • Disables the second API call that stored evaluation results when shadow_eval is true, preventing duplicate evaluation result storage.

    0.8.11release notes

  • Fixes Anthropic streaming.

    0.8.10release notes

  • Fixes HTTP span truncation in FastAPI and Flask instrumentation.

    0.8.10release notes

  • Ensures file encoding is UTF-8 and adds Windows support.

    0.8.10release notes

  • Closed agentic I/O gaps.

    0.8.8release notes

  • Fixed skip_span to prevent duplicate agentic.invocation spans.

    0.8.8release notes

  • Restored inference and invocation spans for the OpenAI Agents SDK.

    0.8.8release notes

  • Adds direct file reading for the span loader to fix an issue.

    0.8.7release notes

  • Fixes litellm input with Azure OpenAI.

    0.8.6release notes

  • Fixes request body collection in HTTP spans.

    0.8.5release notes

  • Skips the inference span when the async flag is true for a sync method.

    0.8.5release notes

  • Removes arbitrary time filtering for okahu eval.

    0.8.5release notes

  • Handles propagated parent traces and ensures workflow spans close on child errors.

    0.8.5release notes

  • Lazy-loads SentenceTransformer to prevent crashes during pytest collection in network-restricted environments.

    0.8.5release notes

  • Corrects the subtype used for inference spans.

    0.8.3release notes

  • Handles MS Agent SDK invocation spans and missing inference events.

    0.8.3release notes

  • Removes extra output from workflow spans.

    0.8.3release notes

  • Fixes the LangChain package path used for BaseChatModel.

    0.8.1release notes

  • Fixes dict-format handling for OpenAI-compatible APIs such as Nebius.

    0.8.1release notes

  • Fixes a prompt value error.

    0.8.1release notes

  • Handles tool output supplied as a dict or JSON.

    0.8.1release notes

monocle-apptrace 0.783 changes

Breaking changes 4

New APIs and options 44

Behavior and default changes 6

  • Runners now include session id details.

    0.7.6release notes

  • MCP spans now include the server name.

    0.7.4release notes

  • MS Agent spans now include scoped attributes.

    0.7.3release notes

  • Added handling for Gemini tool call inference.

    0.7.0release notes

  • Test status is handled, and trace exports are skipped for passed tests.

    0.7.0release notes

  • S3 and blob exporters include the trace_id in generated NDJSON filenames.

    0.7.0release notes

Tooling 2

  • The Monocle test framework now supports Okahu eval testing for facts beyond traces.

    0.7.9release notes

  • Improved the fluent test API.

    0.7.1release notes

Fixes and other changes 27

monocle-apptrace 0.612 changes

New APIs and options 4

  • Added support for the AWS Strands framework.

    0.6.5release notes

  • Added inference instrumentation for Deepseek.

    0.6.5release notes

  • Added support for skipping entity execution and using a mock response.

    0.6.5release notes

  • Added scope agentic invocation.

    0.6.5release notes

Fixes and other changes 8

  • Handle LangGraph request input.

    0.6.6release notes

  • Update FastAPI methods to fix a coroutine issue during server startup.

    0.6.6release notes

  • Fixed unified tracing for FastAPI and Flask.

    0.6.5release notes

  • Standardized the inference sub type to match other span.subtypes.

    0.6.5release notes

  • Fixed a ParentCommand exception in LangGraph.

    0.6.5release notes

  • Fixed the LlamaIndex agent and multi-agent integrations.

    0.6.5release notes

  • Fixed an error in asynchronous Mistral embedding.

    0.6.5release notes

  • Fixed a broken OpenAI agentic flow.

    0.6.5release notes