Kind: Class
Source: atloria-monorepo/libs/agent-core/src/tracing/otlp-exporter.ts
Methods
| Method | Signature | Returns |
|---|---|---|
startSpan | startSpan(operationName: string, parentSpanId: string) | TraceSpan |
endSpan | `endSpan(span: TraceSpan, status: 'ok' | 'error')` |
addEvent | `addEvent(span: TraceSpan, name: string, attributes: Record<string, string | number |
setAttributes | `setAttributes(span: TraceSpan, attributes: Record<string, string | number |
flush | flush() | Promise<void> |
getPendingCount | getPendingCount() | number |
shutdown | shutdown() | Promise<void> |
Where it refuses work
OtlpExporterstops the work with an early return when!this.config.enabled || this.spans.length === 0.
When something fails
OtlpExporterhandles failure in 2 places: it logs it and continues in 1, and discards it silently in 1. A failure discarded silently leaves no trace for whoever debugs this later.
Was this page helpful?