Juncture Tracing
OpenTelemetry integration and structured tracing for Juncture graph execution.
Features
- Structured Spacing: Consistent span naming (
juncture.{component}.{action}) - OpenTelemetry Export: OTLP export for distributed tracing (feature
otel) - Metrics Collection: OpenTelemetry metrics for graph execution
- Graph Callbacks: Event handlers for graph lifecycle
Usage
Basic Tracing (No OTel)
use init_tracing;
// Initialize tracing subscriber with env filter
init_tracing;
OpenTelemetry Integration
use init;
// Configure and install OTel tracing
init
.with_service_name
.install
.await?;
Span Hierarchy
juncture.graph.invoke
juncture.superstep
juncture.node.execute
juncture.llm.call
juncture.tool.call
juncture.checkpoint.put
Feature Flags
| Feature | Description |
|---|---|
otel |
OpenTelemetry OTLP export |
License
Licensed under Apache License, Version 2.0. See LICENSE for details.