Class: StackifyRubyAPM::Span::Context Private

Inherits:
Object
  • Object
show all
Includes:
NaivelyHashable
Defined in:
lib/stackify_apm/span/context.rb

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from NaivelyHashable

#naively_hashable?, #to_h

Constructor Details

#initialize(args) ⇒ Context

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.

Returns a new instance of Context.



9
10
11
12
13
# File 'lib/stackify_apm/span/context.rb', line 9

def initialize(args)
  args.each do |key, val|
    send(:"#{key}=", val)
  end
end

Instance Attribute Details

#ACTIONObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def ACTION
  @ACTION
end

#CACHEKEYObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def CACHEKEY
  @CACHEKEY
end

#CACHENAMEObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def CACHENAME
  @CACHENAME
end

#CATEGORYObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def CATEGORY
  @CATEGORY
end

#COMPONENT_CATEGORYObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def COMPONENT_CATEGORY
  @COMPONENT_CATEGORY
end

#COMPONENT_DETAILObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def COMPONENT_DETAIL
  @COMPONENT_DETAIL
end

#EXCEPTIONObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def EXCEPTION
  @EXCEPTION
end

#IDObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def ID
  @ID
end

#LEVELObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def LEVEL
  @LEVEL
end

#MESSAGEObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def MESSAGE
  @MESSAGE
end

#METHODObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def METHOD
  @METHOD
end

#MONGODB_COLLECTIONObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def MONGODB_COLLECTION
  @MONGODB_COLLECTION
end

#OPERATIONObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def OPERATION
  @OPERATION
end

#PREFIXObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def PREFIX
  @PREFIX
end

#PREFIX_REQUEST_BODYObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def PREFIX_REQUEST_BODY
  @PREFIX_REQUEST_BODY
end

#PREFIX_REQUEST_HEADERSObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def PREFIX_REQUEST_HEADERS
  @PREFIX_REQUEST_HEADERS
end

#PREFIX_REQUEST_SIZE_BYTESObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def PREFIX_REQUEST_SIZE_BYTES
  @PREFIX_REQUEST_SIZE_BYTES
end

#PREFIX_RESPONSE_BODYObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def PREFIX_RESPONSE_BODY
  @PREFIX_RESPONSE_BODY
end

#PREFIX_RESPONSE_HEADERSObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def PREFIX_RESPONSE_HEADERS
  @PREFIX_RESPONSE_HEADERS
end

#PREFIX_RESPONSE_SIZE_BYTESObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def PREFIX_RESPONSE_SIZE_BYTES
  @PREFIX_RESPONSE_SIZE_BYTES
end

#PREFIX_SQL_PARAMETER_COUNTObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def PREFIX_SQL_PARAMETER_COUNT
  @PREFIX_SQL_PARAMETER_COUNT
end

#PREFIX_SQL_PARAMETERSObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def PREFIX_SQL_PARAMETERS
  @PREFIX_SQL_PARAMETERS
end

#PROVIDERObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def PROVIDER
  @PROVIDER
end

#SQLObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def SQL
  @SQL
end

#SQL_TRUNCATEDObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def SQL_TRUNCATED
  @SQL_TRUNCATED
end

#STATUSObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def STATUS
  @STATUS
end

#SUBCATEGORYObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def SUBCATEGORY
  @SUBCATEGORY
end

#THREAD_IDObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def THREAD_ID
  @THREAD_ID
end

#TRACKED_FUNCObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def TRACKED_FUNC
  @TRACKED_FUNC
end

#URLObject

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.



15
16
17
# File 'lib/stackify_apm/span/context.rb', line 15

def URL
  @URL
end

Instance Method Details

#update_request_body(body) ⇒ Object

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.



50
51
52
53
# File 'lib/stackify_apm/span/context.rb', line 50

def update_request_body(body)
  @PREFIX_REQUEST_BODY = body.to_s
  @PREFIX_REQUEST_SIZE_BYTES = body.to_s.length.to_s
end

#update_request_headers(headers) ⇒ Object

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.



55
56
57
# File 'lib/stackify_apm/span/context.rb', line 55

def update_request_headers(headers)
  @PREFIX_REQUEST_HEADERS = to_json_list(headers)
end

#update_response_body(body) ⇒ Object

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.



59
60
61
62
# File 'lib/stackify_apm/span/context.rb', line 59

def update_response_body(body)
  @PREFIX_RESPONSE_BODY = body.to_s
  @PREFIX_RESPONSE_SIZE_BYTES = body.to_s.length.to_s
end

#update_response_headers(headers) ⇒ Object

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.



64
65
66
# File 'lib/stackify_apm/span/context.rb', line 64

def update_response_headers(headers)
  @PREFIX_RESPONSE_HEADERS = to_json_list(headers)
end

#update_status(status) ⇒ Object

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.

rubocop:disable Style/VariableName



46
47
48
# File 'lib/stackify_apm/span/context.rb', line 46

def update_status(status)
  @STATUS = status
end