Skip to content
Back to skills

Otel Tracing

ASecurity

OpenTelemetry tracing for agent observations and SPI verification

  • 61 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 6, 2026
toolspythonnodedebuggingperformance

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add plurigrid/asi --skill otel-tracing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Otel Tracing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Otel Tracing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/plurigrid-otel-tracing/badge)](https://www.skillsdirectory.com/skills/plurigrid-otel-tracing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: otel-tracing
description: OpenTelemetry tracing for agent observations and SPI verification
version: 1.0.0
---

# OpenTelemetry Tracing Skill

**Trit**: -1 (VALIDATOR)
**Bundle**: infrastructure
**Role**: Verification of execution traces and distributed contexts.

## Overview

This skill provides a standard interface for emitting OpenTelemetry spans from agent actions. It is crucial for:
1.  **SPI Verification**: Tracing execution paths to ensure determinism.
2.  **Debugging**: Visualizing distributed agent interactions.
3.  **Performance**: Measuring latency in ACSet bridge operations.

## Integration

### Python

```python
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import ConsoleSpanExporter, SimpleSpanProcessor

def init_tracer(service_name="agent-skill"):
    provider = TracerProvider()
    processor = SimpleSpanProcessor(ConsoleSpanExporter())
    provider.add_span_processor(processor)
    trace.set_tracer_provider(provider)
    return trace.get_tracer(service_name)

tracer = init_tracer()

with tracer.start_as_current_span("agent_action") as span:
    span.set_attribute("agent.trit", -1)
    span.set_attribute("agent.id", "minus_validator")
    # ... perform action ...
```

## SPI Verification Pattern

To verify Strong Parallelism Invariance (SPI), traces must be deterministic given a seed.

```python
def verify_spi_trace(seed, trace_id):
    expected_hash = compute_spi_hash(seed)
    actual_hash = hash(trace_id)
    assert expected_hash == actual_hash
```

## Neo4j Mapping

*   **Nodes**: `Span`, `Trace`
*   **Relationships**: `PARENT_OF`, `NEXT_SIBLING`
*   **Properties**: `start_time`, `end_time`, `attributes` (JSON)

## Commands

*   `trace-agent <agent_id>`: Start a trace for an agent.
*   `export-traces`: Dump traces to JSON.

Files in this skill

  • CONCOMITANT_SKILLS.md464 B
  • SKILL.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.