Class OtlpLogExporter
java.lang.Object
codes.grow.packages.openobserve.logs.OtlpLogExporter
- All Implemented Interfaces:
LogExporter
LogExporter that sends OTLP/HTTP JSON (ExportLogsServiceRequest) to
/api/{org}/v1/logs with a stream-name header. Stored rows use the OTLP column names
(body, severity, severity_number, trace_id, span_id,
flattened attributes and resource); OpenObserve does not store trace flags.-
Constructor Summary
ConstructorsConstructorDescriptionOtlpLogExporter(Api api, String stream) Creates the exporter (useOpenObserveClient.logExporter(stream, true)). -
Method Summary
-
Constructor Details
-
OtlpLogExporter
Creates the exporter (useOpenObserveClient.logExporter(stream, true)).- Parameters:
api- request helperstream- target stream
-
-
Method Details
-
stream
Returns the (normalized) target stream.- Returns:
- the stream
-
export
Sends one batch as OTLP JSON. ApartialSuccessanswer is reported as rejected records with aValidationException.- Specified by:
exportin interfaceLogExporter- Parameters:
records- recordsoptions- gzip flag and time budget- Returns:
- future result
-
shutdown
Nothing to release.- Specified by:
shutdownin interfaceLogExporter- Returns:
- a completed future
-