feat(tracing): add Kayba tracing SDK#125
Merged
davidfarah2003 merged 2 commits intomainfrom Apr 11, 2026
Merged
Conversation
Adds ace.tracing module that wraps MLflow behind a Kayba-branded API. Users install ace-framework[tracing] and call configure(api_key=...) to send traces to the Kayba dashboard — MLflow is never exposed. API: configure(), @trace, start_span(), set_folder(), enable/disable.
…mple - experiment= is now an alias for folder= (no mlflow.set_experiment call) - Folder names are sanitized: HTML stripped, allowlist enforced, capped at 256 chars - Add GLM 5.1 two-agent example (examples/tracing_glm_example.py) - Add agent guide for tracing SDK (agent-guides/tracing-sdk.md)
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
ace.tracingmodule — a thin wrapper around MLflow tracing that sends traces to the Kayba backendexperiment=maps to Kayba's folder concept (no MLflow experiment API dependency)Changes
ace/tracing/— new package withconfigure(),@trace,start_span(), folder management, enable/disable, searchace/__init__.py— re-exportconfigure_tracingpyproject.toml— addtracingoptional extra (mlflow dependency)docs/integrations/tracing.md— user-facing tracing docsagent-guides/tracing-sdk.md— internal agent guide for the SDKexamples/tracing_glm_example.py— two-agent pipeline example using GLM 5.1tests/test_tracing.py— 26 unit tests (configure, sanitization, decorator, re-exports)Test plan
uv run pytest tests/test_tracing.py -v— all 26 tests passfolder='sdk-test'