Getting Started with Manual Tracing
To start manual tracing, you’ll need to:- Import the required classes
- Create a new span
- Track your operations
- Add relevant attributes and events
Start a New Span
Local Span Blocking
You can block spans locally within a particular span-scope:Setting Span Attributes
You can add various attributes to your spans to provide more context about the operation:Tracking Usage Data
Use theUsageModel
to track resource usage and costs:
Adding Custom Attributes
Add custom attributes to provide additional context about your operation:Adding Action Tracking
Enable custom action tracking in your application using our action tracking utility. The action tracking utility in Netra follows the given schema:Recording Events
Track important events during the span’s lifecycle:Real-world Examples
1. Image Generation Workflow
python
2. API Request Processing
python
3. Batch Processing
python
Common Use Cases
- API Request/Response Tracking
- Track HTTP requests and responses
- Monitor response times
- Track error rates
- Record request parameters
- Batch Processing
- Track batch operations
- Monitor progress
- Record processing times
- Track success/failure rates
- Image/Video Processing
- Track media processing operations
- Monitor resource usage
- Record processing times
- Track quality metrics
- Data Processing Pipelines
- Track data transformation steps
- Monitor processing stages
- Record data volumes
- Track error rates
- Machine Learning Operations
- Track model inference
- Monitor resource usage
- Record processing times
- Track model performance metricstitle: “Manual Tracking” description: “Welcome to the home of your new documentation”