@ottrelite/interop-otel.OttreliteExporter
exportSpans(spans
, resultCallback
): void
Called to export sampled SerializedReadableSpans.
Name | Type | Description |
---|---|---|
spans | SerializedReadableSpan [] | the list of sampled Spans to be exported. |
resultCallback | (result : ExportResult ) => void | - |
void
See
SpanExporter.export
note: this method matches SpanExporter.export but is named 'exportSpans' since 'export' is a reserved keyword in objective-c, which effectively would break compilation of the native module on iOS
Optional
forceFlush(): Promise
<void
>
Immediately export all spans
Promise
<void
>
See
SpanExporter.export
initExporter(config
): void
Name | Type |
---|---|
config | OTLPExporterConfig |
void
shutdown(): Promise
<void
>
Stops the exporter.
Promise
<void
>
See
SpanExporter.shutdown