Package com.exasol.telemetry
Class TelemetryClient
- java.lang.Object
-
- com.exasol.telemetry.TelemetryClient
-
- All Implemented Interfaces:
AutoCloseable
public final class TelemetryClient extends Object implements AutoCloseable
Tracks feature usage events and delivers them asynchronously to the configured telemetry endpoint. Create a client by building aTelemetryConfigwithTelemetryConfig.builder(String, String)and passing it tocreate(TelemetryConfig).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Stop the sender thread and wait for any queued events to be flushed before returning.static TelemetryClientcreate(TelemetryConfig config)Create a telemetry client for the provided configuration.voidtrack(String feature)Queue a feature usage event for asynchronous delivery.
-
-
-
Method Detail
-
create
public static TelemetryClient create(TelemetryConfig config)
Create a telemetry client for the provided configuration.- Parameters:
config- telemetry runtime configuration- Returns:
- telemetry client
-
track
public void track(String feature)
Queue a feature usage event for asynchronous delivery.- Parameters:
feature- feature name provided by the caller
-
close
public void close()
Stop the sender thread and wait for any queued events to be flushed before returning.- Specified by:
closein interfaceAutoCloseable
-
-