netra-decorator-instrumentation

Installation
SKILL.md

Netra Decorator Instrumentation

Use this skill to choose the right tracing method and implement decorator-based semantic spans with clear boundaries.

Supported Tracing Methods (Python + TypeScript)

Based on Netra Traces and SDK overview pages, there are three tracing methods in both languages:

Method Python TypeScript Best For
Auto-Instrumentation Netra.init(...) before provider/framework imports new Netra(...) initialization at app startup Fastest setup, supported libraries, zero code changes
Decorators @workflow, @agent, @task, @span @workflow, @agent, @task, @span Semantic application spans with minimal code changes
Manual Tracing Netra.start_span(...) (context manager) Netra.startSpan(...) / explicit end() Fine-grained custom spans and lifecycle control

Decorators should be your default for application semantics. Use manual spans for edge cases and auto-instrumentation for provider/framework coverage.

Related skills
Installs
3
First Seen
Mar 25, 2026