Package io.openlineage.client
Class OpenLineageClient
- java.lang.Object
-
- io.openlineage.client.OpenLineageClient
-
public final class OpenLineageClient extends java.lang.Object
HTTP client used to emitOpenLineage.RunEvent
s to HTTP backend.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenLineageClient.Builder
Builder forOpenLineageClient
instances.
-
Constructor Summary
Constructors Constructor Description OpenLineageClient()
Creates a newOpenLineageClient
object.OpenLineageClient(@NonNull Transport transport)
OpenLineageClient(@NonNull Transport transport, CircuitBreaker circuitBreaker, io.micrometer.core.instrument.MeterRegistry meterRegistry, java.lang.String... disabledFacets)
OpenLineageClient(@NonNull Transport transport, java.lang.String... disabledFacets)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpenLineageClient.Builder
builder()
Returns an newOpenLineageClient.Builder
object for buildingOpenLineageClient
s.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
initializeMetrics()
-
-
-
Constructor Detail
-
OpenLineageClient
public OpenLineageClient()
Creates a newOpenLineageClient
object.
-
OpenLineageClient
public OpenLineageClient(@NonNull @NonNull Transport transport)
-
OpenLineageClient
public OpenLineageClient(@NonNull @NonNull Transport transport, java.lang.String... disabledFacets)
-
OpenLineageClient
public OpenLineageClient(@NonNull @NonNull Transport transport, CircuitBreaker circuitBreaker, io.micrometer.core.instrument.MeterRegistry meterRegistry, java.lang.String... disabledFacets)
-
-
Method Detail
-
emit
public void emit(@NonNull OpenLineage.RunEvent runEvent)
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
public void emit(@NonNull OpenLineage.DatasetEvent datasetEvent)
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
public void emit(@NonNull OpenLineage.JobEvent jobEvent)
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
public static OpenLineageClient.Builder builder()
Returns an newOpenLineageClient.Builder
object for buildingOpenLineageClient
s.
-
-