1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! # graphrt-otel
//!
//! OpenTelemetry for graphrt runs, without the OpenTelemetry SDK: an
//! [`EventTracer`] turns run [`graphrt_core::Event`]s into spans (one per run,
//! one per node execution, one per container body run) with GenAI semantic
//! convention attributes, and exporters ship them as OTLP/HTTP JSON.
//!
//! ```no_run
//! # async fn demo(graph: std::sync::Arc<graphrt_core::Graph>, mut run: graphrt_core::RunStream) {
//! use std::sync::Arc;
//! use futures::StreamExt;
//! use graphrt_otel::{EventTracer, OtelConfig, OtlpHttpExporter};
//!
//! let config = OtelConfig::from_env().expect("valid OTEL_* variables");
//! let exporter = Arc::new(OtlpHttpExporter::start(&config, None).expect("inside tokio"));
//! let mut tracer = EventTracer::new(exporter.clone()).with_graph(graph);
//! while let Some(event) = run.next().await {
//! tracer.on_event(&event);
//! }
//! exporter.shutdown().await;
//! # }
//! ```
//!
//! Content (node outputs, progress payloads) is not recorded unless
//! [`EventTracer::capture_content`] is enabled; secrets are always masked.
pub use ;
pub use ;
pub use ;
pub use Metrics;
pub use Resource;
pub use ;
pub use EventTracer;