Skip to content

Commit

Permalink
steep file update.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahchen6 committed Aug 10, 2023
1 parent 5cea784 commit c31250d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 37 deletions.
2 changes: 2 additions & 0 deletions Steepfile
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ target :ddtrace do
ignore 'lib/datadog/profiling/collectors/cpu_and_wall_time_worker.rb'
ignore 'lib/datadog/profiling/collectors/old_stack.rb'
ignore 'lib/datadog/profiling/collectors/stack.rb'
ignore 'lib/datadog/profiling/diagnostics/environment_logger.rb'
ignore 'lib/datadog/profiling/encoding/profile.rb'
ignore 'lib/datadog/profiling/event.rb'
ignore 'lib/datadog/profiling/events/stack.rb'
Expand Down Expand Up @@ -554,6 +555,7 @@ target :ddtrace do
ignore 'lib/datadog/tracing/contrib/utils/quantization/hash.rb'
ignore 'lib/datadog/tracing/contrib/utils/quantization/http.rb'
ignore 'lib/datadog/tracing/correlation.rb'
ignore 'lib/datadog/tracing/diagnostics/environment_logger.rb'
ignore 'lib/datadog/tracing/diagnostics/ext.rb'
ignore 'lib/datadog/tracing/diagnostics/health.rb'
ignore 'lib/datadog/tracing/distributed/b3_multi.rb'
Expand Down
66 changes: 29 additions & 37 deletions sig/datadog/core/diagnostics/environment_logger.rbs
Original file line number Diff line number Diff line change
@@ -1,52 +1,44 @@
module Datadog
module Core
module Diagnostics
module EnvironmentLogger
def self.log!: (untyped transport_responses) -> untyped

private
module EnvironmentLogging
def log_configuration!: (untyped prefix, untyped data) -> untyped

def self.log_environment!: (untyped line) -> untyped
def log_error!: (untyped prefix, untyped type, untyped error) -> untyped

def self.log_error!: (untyped `type`, untyped error) -> untyped
def self.log?: () -> untyped
def logger: () -> untyped
def log_once!: () ?{ () -> untyped } -> (false | untyped)
def log?: () -> untyped

REPL_PROGRAM_NAMES: ::Array["irb" | "pry"]

def self.repl?: () -> untyped
def repl?: () -> untyped

def rspec?: () -> untyped
end
class EnvironmentCollector
def date: () -> untyped
def os_name: () -> untyped
def version: () -> untyped
def lang: () -> untyped
def lang_version: () -> untyped
def env: () -> untyped
def enabled: () -> untyped
def service: () -> untyped
def dd_version: () -> untyped
def agent_url: () -> (nil | untyped)
def agent_error: (untyped transport_responses) -> (nil | untyped)
def debug: () -> untyped
def analytics_enabled: () -> untyped
def sample_rate: () -> (nil | untyped)
def sampling_rules: () -> (nil | untyped)
def tags: () -> (nil | untyped)
def runtime_metrics_enabled: () -> untyped
def integrations_loaded: () -> (nil | untyped)
def vm: () -> ::String
def partial_flushing_enabled: () -> untyped
def priority_sampling_enabled: () -> untyped
def health_metrics_enabled: () -> untyped
module EnvironmentLogger
extend EnvironmentLogging

def profiling_enabled: () -> untyped
def collect!: (untyped transport_responses) -> ::Hash[:date | :os_name | :version | :lang | :lang_version | :env | :enabled | :service | :dd_version | :agent_url | :agent_error | :debug | :analytics_enabled | :sample_rate | :sampling_rules | :tags | :runtime_metrics_enabled | :integrations_loaded | :vm | :partial_flushing_enabled | :priority_sampling_enabled | :health_metrics_enabled | :profiling_enabled | untyped, untyped]
def self.collect_and_log!: () -> untyped
end
module EnvironmentCollector
def self.collect_config!: () -> { date: untyped, os_name: untyped, version: untyped, lang: untyped, lang_version: untyped, env: untyped, service: untyped, dd_version: untyped, debug: untyped, tags: untyped, runtime_metrics_enabled: untyped, vm: untyped, health_metrics_enabled: untyped }
def self.date: () -> untyped
def self.os_name: () -> untyped
def self.version: () -> untyped
def self.lang: () -> untyped
def self.lang_version: () -> untyped
def self.env: () -> untyped
def self.service: () -> untyped
def self.dd_version: () -> untyped
def self.debug: () -> untyped
def self.tags: () -> (nil | untyped)
def self.runtime_metrics_enabled: () -> untyped
def self.vm: () -> ::String
def self.health_metrics_enabled: () -> untyped

private

def instrumented_integrations: () -> untyped
def instrumented_integrations_settings: () -> untyped
def hash_serializer: (untyped h) -> untyped
def self.hash_serializer: (untyped h) -> untyped
end
end
end
Expand Down

0 comments on commit c31250d

Please sign in to comment.