Class NoOpTelemetryClient
- java.lang.Object
-
- net.snowflake.client.jdbc.telemetry.NoOpTelemetryClient
-
-
Constructor Summary
Constructors Constructor Description NoOpTelemetryClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLogToBatch(TelemetryData log)Attempt to add log to batch, and suppress exceptions thrown in case of failurevoidclose()Close telemetry connector and send any unsubmitted logsvoidpostProcess(String queryId, String sqlState, int vendorCode, Throwable ex)A hook for post-processing after sending telemetry data.Future<Boolean>sendBatchAsync()Send all cached logs to server
-
-
-
Method Detail
-
addLogToBatch
public void addLogToBatch(TelemetryData log)
Description copied from interface:TelemetryAttempt to add log to batch, and suppress exceptions thrown in case of failure- Specified by:
addLogToBatchin interfaceTelemetry- Parameters:
log- entry to add
-
close
public void close()
Description copied from interface:TelemetryClose telemetry connector and send any unsubmitted logs
-
sendBatchAsync
public Future<Boolean> sendBatchAsync()
Description copied from interface:TelemetrySend all cached logs to server- Specified by:
sendBatchAsyncin interfaceTelemetry- Returns:
- future indicating whether the logs were sent successfully
-
postProcess
public void postProcess(String queryId, String sqlState, int vendorCode, Throwable ex)
Description copied from interface:TelemetryA hook for post-processing after sending telemetry data. Can be used, for example, for additional error handling.- Specified by:
postProcessin interfaceTelemetry- Parameters:
queryId- The query idsqlState- The SQL state as defined in net.snowflake.common.core.SqlStatevendorCode- The vendor code for localized messagesex- The throwable that caused this.
-
-