public interface Telemetry
| Modifier and Type | Method and Description |
|---|---|
void |
addLogToBatch(TelemetryData log)
Attempt to add log to batch, and suppress exceptions thrown in case of failure
|
void |
close()
Close telemetry connector and send any unsubmitted logs
|
void |
postProcess(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
|
void addLogToBatch(TelemetryData log)
log - entry to addvoid close()
Future<Boolean> sendBatchAsync()
void postProcess(String queryId, String sqlState, int vendorCode, Throwable ex)
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.Copyright © 2022. All rights reserved.