Package io.openlineage.client
Class OpenLineageClient
java.lang.Object
io.openlineage.client.OpenLineageClient
- All Implemented Interfaces:
AutoCloseable
HTTP client used to emit
OpenLineage.RunEvent
s to HTTP backend.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCreates a newOpenLineageClient
object.OpenLineageClient
(@NonNull Transport transport) OpenLineageClient
(@NonNull Transport transport, CircuitBreaker circuitBreaker, io.micrometer.core.instrument.MeterRegistry meterRegistry, String... disabledFacets) OpenLineageClient
(@NonNull Transport transport, String... disabledFacets) -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenLineageClient.Builder
builder()
void
close()
void
emit
(OpenLineage.DatasetEvent datasetEvent) Emit the given dataset event to HTTP backend.void
emit
(OpenLineage.JobEvent jobEvent) Emit the given run event to HTTP backend.void
emit
(OpenLineage.RunEvent runEvent) Emit the given run event to HTTP backend.void
-
Constructor Details
-
OpenLineageClient
public OpenLineageClient()Creates a newOpenLineageClient
object. -
OpenLineageClient
-
OpenLineageClient
-
OpenLineageClient
public OpenLineageClient(@NonNull @NonNull Transport transport, CircuitBreaker circuitBreaker, io.micrometer.core.instrument.MeterRegistry meterRegistry, String... disabledFacets)
-
-
Method Details
-
emit
Emit the given run event to HTTP backend. The method will return successfully after the run event has been emitted, regardless of any exceptions thrown by the HTTP backend.- Parameters:
runEvent
- The run event to emit.
-
emit
Emit the given dataset event to HTTP backend. The method will return successfully after the dataset event has been emitted, regardless of any exceptions thrown by the HTTP backend.- Parameters:
datasetEvent
- The dataset event to emit.
-
emit
Emit the given run event to HTTP backend. The method will return successfully after the run event has been emitted, regardless of any exceptions thrown by the HTTP backend.- Parameters:
jobEvent
- The job event to emit.
-
initializeMetrics
public void initializeMetrics() -
builder
- Returns:
- an new
OpenLineageClient.Builder
object for buildingOpenLineageClient
s.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-