lib/datadog/core/telemetry/collector.rb in ddtrace-1.18.0 vs lib/datadog/core/telemetry/collector.rb in ddtrace-1.19.0

- old
+ new

@@ -7,10 +7,11 @@ require_relative '../environment/platform' require_relative '../utils/hash' require_relative 'v1/application' require_relative 'v1/dependency' require_relative 'v1/host' +require_relative 'v1/install_signature' require_relative 'v1/integration' require_relative 'v1/product' require_relative '../transport/ext' module Datadog @@ -76,9 +77,18 @@ container_id: Core::Environment::Container.container_id, hostname: Core::Environment::Platform.hostname, kernel_name: Core::Environment::Platform.kernel_name, kernel_release: Core::Environment::Platform.kernel_release, kernel_version: Core::Environment::Platform.kernel_version + ) + end + + # Forms a telemetry app-started install_signature object + def install_signature + Telemetry::V1::InstallSignature.new( + install_id: Datadog.configuration.dig('telemetry', 'install_id'), + install_type: Datadog.configuration.dig('telemetry', 'install_type'), + install_time: Datadog.configuration.dig('telemetry', 'install_time'), ) end # Forms a telemetry app-started integrations object def integrations