Sha256: 64397a6a644240d7fe2a591fe9778f815a48540643e67f7ccc63d770096c34bf
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
# frozen_string_literal: true require 'json' module Datadog module Profiling # Represents a collection of events of a specific type being flushed. EventGroup = Struct.new(:event_class, :events) # Entity class used to represent metadata for a given profile class Flush attr_reader \ :start, :finish, :pprof_file_name, :pprof_data, # gzipped pprof bytes :code_provenance_file_name, :code_provenance_data, # gzipped json bytes :tags_as_array, :internal_metadata_json def initialize( start:, finish:, pprof_file_name:, pprof_data:, code_provenance_file_name:, code_provenance_data:, tags_as_array:, internal_metadata: ) @start = start @finish = finish @pprof_file_name = pprof_file_name @pprof_data = pprof_data @code_provenance_file_name = code_provenance_file_name @code_provenance_data = code_provenance_data @tags_as_array = tags_as_array @internal_metadata_json = JSON.fast_generate(internal_metadata.map { |k, v| [k, v.to_s] }.to_h) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-1.14.0 | lib/datadog/profiling/flush.rb |