Module: Datadog::Core::Telemetry::Request
- Defined in:
- lib/datadog/core/telemetry/request.rb
Overview
Module defining methods for collecting metadata for telemetry
Class Method Summary collapse
Class Method Details
.build_payload(event, seq_id) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/datadog/core/telemetry/request.rb', line 14 def build_payload(event, seq_id) hash = { api_version: Http::Ext::API_VERSION, application: application, debug: false, host: host, payload: event.payload(seq_id), request_type: event.type, runtime_id: Core::Environment::Identity.id, seq_id: seq_id, tracer_time: Time.now.to_i, } hash.compact! hash end |