Expand description
Span contract shared by every instrumented seam in this crate.
Spans are plain tracing spans, so any subscriber can consume them; the field names follow
the OpenTelemetry GenAI semantic conventions (gen_ai.*) plus nitpicker.* for
harness-specific attributes, and otel.name / otel.kind / otel.status_code are the
tracing-opentelemetry conventions for span name, kind, and status. Only identifiers,
counts, and timings are recorded — never prompts, tool arguments, tool output, or provider
error text — so exporting every span is safe by construction.
Functions§
- bounded
- Truncate an identifier to
MAX_ATTR_CHARSbytes on a char boundary. Every string that becomes a span attribute passes through here so a pathological config value stays bounded.