Class: StackifyRubyAPM::Span::Context Private
- Inherits:
-
Object
- Object
- StackifyRubyAPM::Span::Context
- 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
- #ACTION ⇒ Object private
- #CACHEKEY ⇒ Object private
- #CACHENAME ⇒ Object private
- #CATEGORY ⇒ Object private
- #COMPONENT_CATEGORY ⇒ Object private
- #COMPONENT_DETAIL ⇒ Object private
- #EXCEPTION ⇒ Object private
- #ID ⇒ Object private
- #LEVEL ⇒ Object private
- #MESSAGE ⇒ Object private
- #METHOD ⇒ Object private
- #MONGODB_COLLECTION ⇒ Object private
- #OPERATION ⇒ Object private
- #PREFIX ⇒ Object private
- #PREFIX_REQUEST_BODY ⇒ Object private
- #PREFIX_REQUEST_HEADERS ⇒ Object private
- #PREFIX_REQUEST_SIZE_BYTES ⇒ Object private
- #PREFIX_RESPONSE_BODY ⇒ Object private
- #PREFIX_RESPONSE_HEADERS ⇒ Object private
- #PREFIX_RESPONSE_SIZE_BYTES ⇒ Object private
- #PREFIX_SQL_PARAMETER_COUNT ⇒ Object private
- #PREFIX_SQL_PARAMETERS ⇒ Object private
- #PROVIDER ⇒ Object private
- #SQL ⇒ Object private
- #SQL_TRUNCATED ⇒ Object private
- #STATUS ⇒ Object private
- #SUBCATEGORY ⇒ Object private
- #THREAD_ID ⇒ Object private
- #TRACKED_FUNC ⇒ Object private
- #URL ⇒ Object private
Instance Method Summary collapse
-
#initialize(**args) ⇒ Context
constructor
private
A new instance of Context.
- #update_request_body(body) ⇒ Object private
- #update_request_headers(headers) ⇒ Object private
- #update_response_body(body) ⇒ Object private
- #update_response_headers(headers) ⇒ Object private
-
#update_status(status) ⇒ Object
private
rubocop:disable Style/VariableName.
Methods included from NaivelyHashable
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
#ACTION ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def ACTION @ACTION end |
#CACHEKEY ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def CACHEKEY @CACHEKEY end |
#CACHENAME ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def CACHENAME @CACHENAME end |
#CATEGORY ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def CATEGORY @CATEGORY end |
#COMPONENT_CATEGORY ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def COMPONENT_CATEGORY @COMPONENT_CATEGORY end |
#COMPONENT_DETAIL ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def COMPONENT_DETAIL @COMPONENT_DETAIL end |
#EXCEPTION ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def EXCEPTION @EXCEPTION end |
#ID ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def ID @ID end |
#LEVEL ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def LEVEL @LEVEL end |
#MESSAGE ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def MESSAGE @MESSAGE end |
#METHOD ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def METHOD @METHOD end |
#MONGODB_COLLECTION ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def MONGODB_COLLECTION @MONGODB_COLLECTION end |
#OPERATION ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def OPERATION @OPERATION end |
#PREFIX ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def PREFIX @PREFIX end |
#PREFIX_REQUEST_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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def PREFIX_REQUEST_BODY @PREFIX_REQUEST_BODY end |
#PREFIX_REQUEST_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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def PREFIX_REQUEST_HEADERS @PREFIX_REQUEST_HEADERS end |
#PREFIX_REQUEST_SIZE_BYTES ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def PREFIX_REQUEST_SIZE_BYTES @PREFIX_REQUEST_SIZE_BYTES end |
#PREFIX_RESPONSE_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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def PREFIX_RESPONSE_BODY @PREFIX_RESPONSE_BODY end |
#PREFIX_RESPONSE_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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def PREFIX_RESPONSE_HEADERS @PREFIX_RESPONSE_HEADERS end |
#PREFIX_RESPONSE_SIZE_BYTES ⇒ 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.
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_COUNT ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def PREFIX_SQL_PARAMETER_COUNT @PREFIX_SQL_PARAMETER_COUNT end |
#PREFIX_SQL_PARAMETERS ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def PREFIX_SQL_PARAMETERS @PREFIX_SQL_PARAMETERS end |
#PROVIDER ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def PROVIDER @PROVIDER end |
#SQL ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def SQL @SQL end |
#SQL_TRUNCATED ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def SQL_TRUNCATED @SQL_TRUNCATED end |
#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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def STATUS @STATUS end |
#SUBCATEGORY ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def SUBCATEGORY @SUBCATEGORY end |
#THREAD_ID ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def THREAD_ID @THREAD_ID end |
#TRACKED_FUNC ⇒ 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.
15 16 17 |
# File 'lib/stackify_apm/span/context.rb', line 15 def TRACKED_FUNC @TRACKED_FUNC end |
#URL ⇒ 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.
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 |