Skip to content

basalt / core/src / OtlpHttpExporter

Class: OtlpHttpExporter ​

Defined in: core/src/tracing.ts:243

Buffers spans and POSTs them to an OTLP/HTTP collector as OTLP/JSON.

Implements ​

Constructors ​

Constructor ​

> new OtlpHttpExporter(options): OtlpHttpExporter

Defined in: core/src/tracing.ts:251

Parameters ​

options ​

OtlpHttpExporterOptions

Returns ​

OtlpHttpExporter

Methods ​

export() ​

> export(spans): void

Defined in: core/src/tracing.ts:259

Parameters ​

spans ​

FinishedSpan[]

Returns ​

void

Implementation of ​

SpanExporter.export


forceFlush() ​

> forceFlush(): Promise<void>

Defined in: core/src/tracing.ts:264

Returns ​

Promise<void>

Implementation of ​

SpanExporter.forceFlush

Released under the MIT License.