Skip to main content

OpenTelemetry Attributes Reference

Complete reference for all span attributes and metrics emitted by the aip-otel-exporter. These attributes follow OpenTelemetry Semantic Conventions for span naming and attribute structure.

Span Attributes

aip.integrity_check — 22 attributes + 2 GenAI SIG aliases

The primary span for AIP integrity checkpoint results.
AttributeTypeSourceDescription
aip.integrity.checkpoint_idstringcheckpointUnique checkpoint identifier
aip.integrity.verdictstringcheckpointclear, review_needed, or boundary_violation
aip.integrity.agent_idstringcheckpointAgent identifier
aip.integrity.card_idstringcheckpointAlignment Card identifier
aip.integrity.session_idstringcheckpointSession identifier
aip.integrity.thinking_hashstringcheckpointSHA-256 hash of the thinking block
aip.integrity.proceedbooleansignalWhether the agent should proceed
aip.integrity.recommended_actionstringsignalcontinue, log_and_continue, pause_for_review, or deny_and_escalate
aip.integrity.concerns_countintsignalNumber of concerns detected
aip.integrity.analysis_modelstringanalysis_metadataModel used for integrity analysis
aip.integrity.analysis_duration_msfloatanalysis_metadataAnalysis duration in milliseconds
aip.integrity.thinking_tokensintanalysis_metadataToken count of the thinking block
aip.integrity.truncatedbooleananalysis_metadataWhether the thinking block was truncated
aip.integrity.extraction_confidencefloatanalysis_metadataConfidence in thinking block extraction
aip.conscience.consultation_depthstringconscience_contextstandard or deep conscience evaluation
aip.conscience.values_checked_countintconscience_contextNumber of values evaluated
aip.conscience.conflicts_countintconscience_contextNumber of value conflicts detected
aip.window.sizeintwindow_summaryNumber of checkpoints in the rolling window
aip.window.integrity_ratiofloatwindow_summaryRatio of clear verdicts (0.0-1.0)
aip.window.drift_alert_activebooleanwindow_summaryWhether a drift alert is currently active
gen_ai.evaluation.verdictstringGenAI SIGForward-compatible alias for aip.integrity.verdict
gen_ai.evaluation.scorefloatGenAI SIGForward-compatible alias for aip.window.integrity_ratio
Events emitted on this span:
  • aip.concern — One event per concern detected. Includes category, severity, description, and evidence.
  • aip.drift_alert — Emitted when a drift alert is active. Includes drift_direction and integrity_similarity.

aap.verify_trace — 8 attributes

Span for AAP trace verification results.
AttributeTypeDescription
aap.verification.resultbooleanWhether the trace passed verification
aap.verification.similarity_scorefloatSimilarity score between trace and card
aap.verification.violations_countintNumber of violations detected
aap.verification.warnings_countintNumber of warnings detected
aap.verification.trace_idstringAP-Trace identifier
aap.verification.card_idstringAlignment Card identifier
aap.verification.duration_msfloatVerification duration in milliseconds
aap.verification.checks_performedstringComma-separated list of checks performed
Events emitted on this span:
  • aap.violation — One event per violation. Includes type, severity, description, and field.

aap.check_coherence — 5 attributes

Span for AAP value coherence check results (used in multi-agent coordination).
AttributeTypeDescription
aap.coherence.compatiblebooleanWhether the agents are value-compatible
aap.coherence.scorefloatCoherence score (0.0-1.0)
aap.coherence.proceedbooleanWhether coordination should proceed
aap.coherence.matched_countintNumber of matched values
aap.coherence.conflict_countintNumber of conflicting values

aap.detect_drift — 2 attributes

Span for AAP behavioral drift detection results.
AttributeTypeDescription
aap.drift.alerts_countintNumber of drift alerts generated
aap.drift.traces_analyzedintNumber of traces analyzed for drift
Events emitted on this span:
  • aap.drift_alert — One event per alert. Includes drift_direction, integrity_similarity, and sustained_checks.

Span Hierarchy

Spans are created as children of the current active span via context.active():
your_application_span
  ├── aip.integrity_check
  │    ├── event: aip.concern (one per concern)
  │    └── event: aip.drift_alert (when drift active)
  ├── aap.verify_trace
  │    └── event: aap.violation (one per violation)
  ├── aap.check_coherence
  └── aap.detect_drift
       └── event: aap.drift_alert (one per alert)

Metrics

9 metric instruments for aggregate monitoring:

AIP Metrics

MetricTypeLabelsDescription
aip.integrity_checks.totalCounterverdict, agent_idTotal number of integrity checks performed
aip.concerns.totalCountercategory, severityTotal number of concerns detected
aip.analysis.duration_msHistogramverdictDistribution of analysis durations
aip.window.integrity_ratioHistogramDistribution of integrity ratios across windows
aip.drift_alerts.totalCounterTotal number of drift alerts generated

AAP Metrics

MetricTypeLabelsDescription
aap.verifications.totalCounterverifiedTotal number of trace verifications
aap.violations.totalCountertype, severityTotal number of violations detected
aap.verification.duration_msHistogramDistribution of verification durations
aap.coherence.scoreHistogramcompatibleDistribution of coherence scores

GenAI SIG Forward Compatibility

The exporter includes forward-compatible aliases that track the emerging OTel GenAI SIG conventions for AI/ML observability:
GenAI SIG AttributeMaps ToDescription
gen_ai.evaluation.verdictaip.integrity.verdictStandardized evaluation verdict
gen_ai.evaluation.scoreaip.window.integrity_ratioStandardized evaluation score
These aliases are emitted alongside the aip.* attributes on every aip.integrity_check span, ensuring forward compatibility as the OTel GenAI SIG conventions stabilize.

Dashboard Templates

Pre-built Grafana and Datadog dashboards that consume these attributes and metrics are available in the aip-otel-exporter repository:
  • grafana-aip-overview.json — Fleet-wide integrity monitoring using aip.integrity_checks.total, aip.concerns.total, and aip.window.integrity_ratio
  • grafana-aip-detail.json — Per-agent deep-dive using all aip.integrity.* span attributes
  • datadog-aip-overview.json — Datadog importable dashboard