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
44
45
46
47
48
49
50
51
52
53
54
55
//! Telemetry module - OpenTelemetry integration
//!
//! This module bridges core execution IDs and events into OpenTelemetry spans/traces.
//!
//! ## Important: Source of Truth
//!
//! IDs and Events are DEFINED in `kernel/` (source of truth).
//! This module bridges them into OpenTelemetry spans/traces.
//! No new domain types defined here.
//!
//! ## What This Module Provides
//!
//! - **Span attribute types**: ExecutionSpanAttributes, StepSpanAttributes, etc.
//! - **Span name generators**: execution_span_name, step_span_name, etc.
//! - **Trace context extraction**: extract_trace_context
//!
//! ## Architecture
//!
//! ```text
//! kernel/ (source of truth)
//! │
//! │ IDs and Events
//! ▼
//! ┌─────────────────────────────────────────────────────────┐
//! │ telemetry/ │
//! │ ┌────────────┐ ┌────────────┐ ┌────────────┐ │
//! │ │ spans │ │ exporter │ │ init │ │
//! │ │(attributes)│ │ (OTel) │ │ (setup) │ │
//! │ └────────────┘ └────────────┘ └────────────┘ │
//! └────────────────────────────┬────────────────────────────┘
//! │
//! ▼
//! OpenTelemetry Collector
//! ```
//!
//! @see docs/TECHNICAL/01-EXECUTION-TELEMETRY.md
pub use ;