Method: Datadog::Core::Telemetry::Event::AppClientConfigurationChange#configuration

Defined in:
lib/datadog/core/telemetry/event/app_client_configuration_change.rb

#configurationObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/datadog/core/telemetry/event/app_client_configuration_change.rb', line 27

def configuration
  config = Datadog.configuration
  seq_id = Event.configuration_sequence.next

  res = @changes.map do |name, value|
    {
      name: name,
      value: value,
      origin: @origin,
      seq_id: seq_id,
    }
  end

  unless config.dig('appsec', 'sca_enabled').nil?
    res << {
      name: 'appsec.sca_enabled',
      value: config.appsec.sca_enabled,
      origin: 'code',
      seq_id: seq_id,
    }
  end

  res
end