Package net.snowflake.ingest.connection
Class TelemetryService
- java.lang.Object
-
- net.snowflake.ingest.connection.TelemetryService
-
public class TelemetryService extends Object
Telemetry service to collect logs in the SDK and send them to Snowflake through the JDBC client telemetry API
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Flush the telemetry buffer and close the telemetry servicevoidrefreshToken(String token)Refresh JWT token stored in the telemetry clientvoidreportClientFailure(String summary, String exception)Report the Streaming Ingest failure metricsvoidreportCpuMemoryUsage(com.codahale.metrics.Histogram cpuUsage)Report the Streaming Ingest CUP/memory usage metricsvoidreportLatencyInSec(com.codahale.metrics.Timer buildLatency, com.codahale.metrics.Timer uploadLatency, com.codahale.metrics.Timer registerLatency, com.codahale.metrics.Timer flushLatency)Report the Streaming Ingest latency metricsvoidreportThroughputBytesPerSecond(com.codahale.metrics.Meter inputThroughput, com.codahale.metrics.Meter uploadThroughput)Report the Streaming Ingest throughput metrics
-
-
-
Method Detail
-
close
public void close()
Flush the telemetry buffer and close the telemetry service
-
reportLatencyInSec
public void reportLatencyInSec(com.codahale.metrics.Timer buildLatency, com.codahale.metrics.Timer uploadLatency, com.codahale.metrics.Timer registerLatency, com.codahale.metrics.Timer flushLatency)Report the Streaming Ingest latency metrics
-
reportClientFailure
public void reportClientFailure(String summary, String exception)
Report the Streaming Ingest failure metrics
-
reportThroughputBytesPerSecond
public void reportThroughputBytesPerSecond(com.codahale.metrics.Meter inputThroughput, com.codahale.metrics.Meter uploadThroughput)Report the Streaming Ingest throughput metrics
-
reportCpuMemoryUsage
public void reportCpuMemoryUsage(com.codahale.metrics.Histogram cpuUsage)
Report the Streaming Ingest CUP/memory usage metrics
-
refreshToken
public void refreshToken(String token)
Refresh JWT token stored in the telemetry client
-
-