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 void
close()
Flush the telemetry buffer and close the telemetry servicevoid
refreshJWTToken(String token)
Refresh JWT token stored in the telemetry clientvoid
reportClientFailure(String summary, String exception)
Report the Streaming Ingest failure metricsvoid
reportCpuMemoryUsage(com.codahale.metrics.Histogram cpuUsage)
Report the Streaming Ingest CUP/memory usage metricsvoid
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 metricsvoid
reportThroughputBytesPerSecond(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
-
refreshJWTToken
public void refreshJWTToken(String token)
Refresh JWT token stored in the telemetry client
-
-