Sha256: 9dab6faf612103e03955874ad950e5b44abb86578f97ecd91cadbed7917999b9

Contents?: true

Size: 1.87 KB

Versions: 10

Compression:

Stored size: 1.87 KB

Contents

# typed: strict

require_relative 'ext'
require_relative '../metrics/client'

module Datadog
  module Core
    module Diagnostics
      # Health-related diagnostics
      module Health
        # Health metrics for diagnostics
        class Metrics < Core::Metrics::Client
          count :api_errors, Ext::Health::Metrics::METRIC_API_ERRORS
          count :api_requests, Ext::Health::Metrics::METRIC_API_REQUESTS
          count :api_responses, Ext::Health::Metrics::METRIC_API_RESPONSES
          count :error_context_overflow, Ext::Health::Metrics::METRIC_ERROR_CONTEXT_OVERFLOW
          count :error_instrumentation_patch, Ext::Health::Metrics::METRIC_ERROR_INSTRUMENTATION_PATCH
          count :error_span_finish, Ext::Health::Metrics::METRIC_ERROR_SPAN_FINISH
          count :error_unfinished_spans, Ext::Health::Metrics::METRIC_ERROR_UNFINISHED_SPANS
          count :instrumentation_patched, Ext::Health::Metrics::METRIC_INSTRUMENTATION_PATCHED
          count :queue_accepted, Ext::Health::Metrics::METRIC_QUEUE_ACCEPTED
          count :queue_accepted_lengths, Ext::Health::Metrics::METRIC_QUEUE_ACCEPTED_LENGTHS
          count :queue_dropped, Ext::Health::Metrics::METRIC_QUEUE_DROPPED
          count :traces_filtered, Ext::Health::Metrics::METRIC_TRACES_FILTERED
          count :transport_trace_too_large, Ext::Health::Metrics::METRIC_TRANSPORT_TRACE_TOO_LARGE
          count :transport_chunked, Ext::Health::Metrics::METRIC_TRANSPORT_CHUNKED
          count :writer_cpu_time, Ext::Health::Metrics::METRIC_WRITER_CPU_TIME

          gauge :queue_length, Ext::Health::Metrics::METRIC_QUEUE_LENGTH
          gauge :queue_max_length, Ext::Health::Metrics::METRIC_QUEUE_MAX_LENGTH
          gauge :queue_spans, Ext::Health::Metrics::METRIC_QUEUE_SPANS
          gauge :sampling_service_cache_length, Ext::Health::Metrics::METRIC_SAMPLING_SERVICE_CACHE_LENGTH
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ddtrace-1.7.0 lib/datadog/core/diagnostics/health.rb
ddtrace-1.6.1 lib/datadog/core/diagnostics/health.rb
ddtrace-1.6.0 lib/datadog/core/diagnostics/health.rb
ddtrace-1.5.2 lib/datadog/core/diagnostics/health.rb
ddtrace-1.5.1 lib/datadog/core/diagnostics/health.rb
ddtrace-1.5.0 lib/datadog/core/diagnostics/health.rb
ddtrace-1.4.2 lib/datadog/core/diagnostics/health.rb
ddtrace-1.4.1 lib/datadog/core/diagnostics/health.rb
ddtrace-1.4.0 lib/datadog/core/diagnostics/health.rb
ddtrace-1.3.0 lib/datadog/core/diagnostics/health.rb