Class 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 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