Class: Appsignal::Transaction::OpenTelemetryBackend::EventFrame

Inherits:
Struct
  • Object
show all
Defined in:
lib/appsignal/transaction/opentelemetry_backend.rb

Overview

One open event on the event stack. Holds the OpenTelemetry span and the context token attached for it, plus the allocation bookkeeping for the event. allocation_start is the allocation counter when the event began (nil when allocation tracking is off), and child_allocation_count accumulates the full allocation counts of the event's finished children, so the event's own allocations are full - child_allocation_count. db_system_name_set tracks whether the event itself already set db.system.name (through set_attributes) before it finishes, so the SQL sentinel written at finish only fills in a value that is missing.

Instance Attribute Summary collapse

Instance Attribute Details

#allocation_startObject

Returns the value of attribute allocation_start

Returns:

  • (Object)

    the current value of allocation_start



104
105
106
# File 'lib/appsignal/transaction/opentelemetry_backend.rb', line 104

def allocation_start
  @allocation_start
end

#child_allocation_countObject

Returns the value of attribute child_allocation_count

Returns:

  • (Object)

    the current value of child_allocation_count



104
105
106
# File 'lib/appsignal/transaction/opentelemetry_backend.rb', line 104

def child_allocation_count
  @child_allocation_count
end

#db_system_name_setObject

Returns the value of attribute db_system_name_set

Returns:

  • (Object)

    the current value of db_system_name_set



104
105
106
# File 'lib/appsignal/transaction/opentelemetry_backend.rb', line 104

def db_system_name_set
  @db_system_name_set
end

#spanObject

Returns the value of attribute span

Returns:

  • (Object)

    the current value of span



104
105
106
# File 'lib/appsignal/transaction/opentelemetry_backend.rb', line 104

def span
  @span
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



104
105
106
# File 'lib/appsignal/transaction/opentelemetry_backend.rb', line 104

def token
  @token
end