Class: Datadog::Profiling::Flush

Inherits:
Struct
  • Object
show all
Defined in:
lib/ddtrace/profiling/flush.rb

Overview

Entity class used to represent metadata for a given profile

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Flush

Returns a new instance of Flush.



25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/ddtrace/profiling/flush.rb', line 25

def initialize(*args)
  super
  self.runtime_id = runtime_id || Datadog::Core::Environment::Identity.id
  self.service = service || Datadog.configuration.service
  self.env = env || Datadog.configuration.env
  self.version = version || Datadog.configuration.version
  self.host = host || Datadog::Core::Environment::Socket.hostname
  self.language = language || Datadog::Core::Environment::Identity.lang
  self.runtime_engine = runtime_engine || Datadog::Core::Environment::Identity.lang_engine
  self.runtime_platform = runtime_platform || Datadog::Core::Environment::Identity.lang_platform
  self.runtime_version = runtime_version || Datadog::Core::Environment::Identity.lang_version
  self.profiler_version = profiler_version || Datadog::Core::Environment::Identity.tracer_version
  self.tags = tags || Datadog.configuration.tags
end

Instance Attribute Details

#envObject

Returns the value of attribute env

Returns:

  • (Object)

    the current value of env



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def env
  @env
end

#event_countObject

Returns the value of attribute event_count

Returns:

  • (Object)

    the current value of event_count



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def event_count
  @event_count
end

#event_groupsObject

Returns the value of attribute event_groups

Returns:

  • (Object)

    the current value of event_groups



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def event_groups
  @event_groups
end

#finishObject

Returns the value of attribute finish

Returns:

  • (Object)

    the current value of finish



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def finish
  @finish
end

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def host
  @host
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def language
  @language
end

#profiler_versionObject

Returns the value of attribute profiler_version

Returns:

  • (Object)

    the current value of profiler_version



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def profiler_version
  @profiler_version
end

#runtime_engineObject

Returns the value of attribute runtime_engine

Returns:

  • (Object)

    the current value of runtime_engine



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def runtime_engine
  @runtime_engine
end

#runtime_idObject

Returns the value of attribute runtime_id

Returns:

  • (Object)

    the current value of runtime_id



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def runtime_id
  @runtime_id
end

#runtime_platformObject

Returns the value of attribute runtime_platform

Returns:

  • (Object)

    the current value of runtime_platform



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def runtime_platform
  @runtime_platform
end

#runtime_versionObject

Returns the value of attribute runtime_version

Returns:

  • (Object)

    the current value of runtime_version



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def runtime_version
  @runtime_version
end

#serviceObject

Returns the value of attribute service

Returns:

  • (Object)

    the current value of service



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def service
  @service
end

#startObject

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def start
  @start
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def tags
  @tags
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



8
9
10
# File 'lib/ddtrace/profiling/flush.rb', line 8

def version
  @version
end