# Juncture Tracing
[](https://crates.io/crates/juncture-tracing)
[](https://docs.rs/juncture-tracing)
[](LICENSE)
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)
```rust
use juncture_tracing::init_tracing;
// Initialize tracing subscriber with env filter
init_tracing();
```
### OpenTelemetry Integration
```rust
use juncture_tracing::init;
// Configure and install OTel tracing
init()
.with_service_name("my-juncture-app")
.install()
.await?;
```
## Span Hierarchy
```
juncture.graph.invoke
juncture.superstep
juncture.node.execute
juncture.llm.call
juncture.tool.call
juncture.checkpoint.put
```
## Feature Flags
| `otel` | OpenTelemetry OTLP export |
## License
Licensed under Apache License, Version 2.0. See [LICENSE](../../LICENSE) for details.