# TraceSpan

**Kind:** Interface

**Source:** [`atloria-monorepo/libs/agent-core/src/tracing/otlp-exporter.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/tracing/otlp-exporter.ts#L11)

OTLP Tracing Exporter

Generic: SDK TracingExporter → OpenTelemetry → Grafana.
Reusable by any agent (doc-automation, support AI, etc.)

Phase 6: Collects spans from the agent runtime and exports
them in OpenTelemetry format.

## Properties

| Property | Type |
|---|---|
| `traceId` | `string` |
| `spanId` | `string` |
| `parentSpanId` | `string` |
| `operationName` | `string` |
| `serviceName` | `string` |
| `startTime` | `number` |
| `endTime` | `number` |
| `duration` | `number` |
| `status` | `'ok' | 'error' | 'unset'` |
| `attributes` | `Record<string, string | number | boolean>` |
| `events` | `TraceEvent[]` |
