Class: ChargeBee::Telemetry::RequestTelemetryContext
- Inherits:
-
Object
- Object
- ChargeBee::Telemetry::RequestTelemetryContext
- Defined in:
- lib/chargebee/telemetry/request_telemetry_context.rb
Overview
Context passed to TelemetryAdapter#on_request_start.
Instance Attribute Summary collapse
-
#chargebee_api_version ⇒ Object
readonly
Returns the value of attribute chargebee_api_version.
-
#chargebee_site ⇒ Object
readonly
Returns the value of attribute chargebee_site.
-
#http_method ⇒ Object
readonly
Returns the value of attribute http_method.
-
#http_url ⇒ Object
readonly
Returns the value of attribute http_url.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#sdk_name ⇒ Object
readonly
Returns the value of attribute sdk_name.
-
#sdk_version ⇒ Object
readonly
Returns the value of attribute sdk_version.
-
#server_address ⇒ Object
readonly
Returns the value of attribute server_address.
-
#span_name ⇒ Object
readonly
Returns the value of attribute span_name.
-
#start_attributes ⇒ Object
readonly
Returns the value of attribute start_attributes.
Instance Method Summary collapse
-
#initialize(span_name:, resource:, operation:, http_method:, http_url:, server_address:, chargebee_site:, chargebee_api_version:, sdk_name:, sdk_version:, start_attributes:) ⇒ RequestTelemetryContext
constructor
A new instance of RequestTelemetryContext.
Constructor Details
#initialize(span_name:, resource:, operation:, http_method:, http_url:, server_address:, chargebee_site:, chargebee_api_version:, sdk_name:, sdk_version:, start_attributes:) ⇒ RequestTelemetryContext
Returns a new instance of RequestTelemetryContext.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 13 def initialize(span_name:, resource:, operation:, http_method:, http_url:, server_address:, chargebee_site:, chargebee_api_version:, sdk_name:, sdk_version:, start_attributes:) @span_name = span_name @resource = resource @operation = operation @http_method = http_method @http_url = http_url @server_address = server_address @chargebee_site = chargebee_site @chargebee_api_version = chargebee_api_version @sdk_name = sdk_name @sdk_version = sdk_version @start_attributes = start_attributes.freeze end |
Instance Attribute Details
#chargebee_api_version ⇒ Object (readonly)
Returns the value of attribute chargebee_api_version.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 10 def chargebee_api_version @chargebee_api_version end |
#chargebee_site ⇒ Object (readonly)
Returns the value of attribute chargebee_site.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 10 def chargebee_site @chargebee_site end |
#http_method ⇒ Object (readonly)
Returns the value of attribute http_method.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 10 def http_method @http_method end |
#http_url ⇒ Object (readonly)
Returns the value of attribute http_url.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 10 def http_url @http_url end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 10 def operation @operation end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 10 def resource @resource end |
#sdk_name ⇒ Object (readonly)
Returns the value of attribute sdk_name.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 10 def sdk_name @sdk_name end |
#sdk_version ⇒ Object (readonly)
Returns the value of attribute sdk_version.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 10 def sdk_version @sdk_version end |
#server_address ⇒ Object (readonly)
Returns the value of attribute server_address.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 10 def server_address @server_address end |
#span_name ⇒ Object (readonly)
Returns the value of attribute span_name.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 10 def span_name @span_name end |
#start_attributes ⇒ Object (readonly)
Returns the value of attribute start_attributes.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_context.rb', line 10 def start_attributes @start_attributes end |