maf-tracing
Skill by microsoft
Adds OpenTelemetry tracing and logging to Microsoft Agent Framework workflows. It exports to Azure Application Insights, a generic OTLP endpoint, or both, configured through environment variables. Aimed at developers building MAF projects.
Install maf-tracing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/microsoft/promptflow /tmp/promptflow && mkdir -p ~/.claude/skills && cp -r /tmp/promptflow/.github/skills/maf-tracing ~/.claude/skills/maf-tracingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/microsoft/promptflow /tmp/promptflow && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/promptflow/.github/skills/maf-tracing ~/.gemini/antigravity-cli/skills/maf-tracingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The maf-tracing skill sets up tracing and logging for Microsoft Agent Framework (MAF) workflows. It configures OpenTelemetry export to Azure Application Insights, a generic OTLP endpoint such as Jaeger, Zipkin or Grafana Tempo, or both. Connection details are read from environment variables, and the skill adds the required packages to requirements.txt.
According to the source, MAF emits spans for executor invocations, agent calls and LLM requests automatically, so no changes are needed inside Executor classes. The skill adds exporter setup and a call to configure_otel_providers() at application startup, before any workflow.run() call. It also generates a .env.example template. It is aimed at developers who want to observe, debug or monitor agent workflows built with agent-framework.
Written from the project's SKILL.md and checked against it.
What it can do
- Application Insights exportSends workflow traces to Azure Application Insights using a connection string.
- OTLP exportSends traces to an OTLP-compatible endpoint such as Jaeger, Zipkin or Grafana Tempo.
- Dual exportSends telemetry to both Application Insights and an OTLP endpoint at the same time.
- Python logging integrationExports Python logging calls through OpenTelemetry when the user asks for logging.
- Requirements updateAppends the needed tracing packages to requirements.txt without duplicating existing entries.
- Environment templateGenerates a .env.example file listing the required tracing environment variables.
- Setup placementPlaces the setup code at the start of the entry-point script, before workflow.run().
What you need
- Python project using agent-framework
- Azure Application Insights connection string, for Application Insights export
- OTLP-compatible backend such as Jaeger or Grafana Tempo, for OTLP export
Try asking
- Add Application Insights tracing to my MAF workflow project.
- Set up OTLP tracing to Jaeger for my agent-framework app.
- Add logging and tracing to my workflow and create a .env.example file.
Good to know
- Exporter setup must run before configure_otel_providers(), and both must run before any workflow.run() call.
- Setup code must not be placed inside Executor classes.
- gRPC export needs the separate gRPC exporter package and OTEL_EXPORTER_OTLP_PROTOCOL set to grpc.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .github/skills/maf-tracing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md15 KB
Alternatives to maf-tracing
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
maf-tracing: common questions
Do I need to change my Executor classes to get traces?
No. The source says MAF emits OpenTelemetry spans for executor invocations, agent calls and LLM requests automatically, so no instrumentation changes are needed inside Executor classes.
Which export destination does the skill use by default?
If the user asks for tracing without naming a destination, the skill defaults to both Application Insights and OTLP.
Where is the Application Insights connection string read from?
The source says it comes from the Azure Portal under App Insights, Overview, and is read from the APPLICATIONINSIGHTS_CONNECTION_STRING environment variable.
How do I install maf-tracing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is maf-tracing free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is maf-tracing safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to maf-tracing?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
