@ottrelite/interop-otel.OttreliteExporterOTLP
SpanExporter
new OttreliteExporterOTLP(config
)
Creates a new C++ OTLP exporter instance.
Name | Type | Description |
---|---|---|
config | OTLPExporterConfig | Configuration for the OTLP exporter. |
Protected
ReactNativeOttreliteInteropOTELExporterOTLPHybridObject: ReactNativeOttreliteInteropOTELExporterOTLP
Private
config: OTLPExporterConfig
Configuration for the OTLP exporter.
export(spans
, resultCallback
): void
Export buffered ReadableSpans to the OTLP endpoint.
Name | Type | Description |
---|---|---|
spans | ReadableSpan [] | The spans to export. |
resultCallback | (result : ExportResult ) => void | The callback to invoke with the result of this operation. |
void
SpanExporter.export
Optional
forceFlush(): Promise
<undefined
| void
>
Export all spans.
Promise
<undefined
| void
>
See
SpanExporter.forceFlush
SpanExporter.forceFlush
shutdown(): Promise
<void
>
Shut down this exporter.
Promise
<void
>
SpanExporter.shutdown