Class: OpenTelemetry::SDK::Trace::Export::ExportError
- Inherits:
-
Error
- Object
- Error
- OpenTelemetry::SDK::Trace::Export::ExportError
- Defined in:
- lib/opentelemetry/sdk/trace/export.rb
Overview
Raised when an export fails; spans are available via :spans accessor
Instance Attribute Summary collapse
-
#spans ⇒ Array<OpenTelemetry::SDK::Trace::Span>
readonly
Returns the Span array for this exception.
Instance Method Summary collapse
-
#initialize(spans) ⇒ ExportError
constructor
A new instance of ExportError.
Constructor Details
#initialize(spans) ⇒ ExportError
Returns a new instance of ExportError.
21 22 23 24 |
# File 'lib/opentelemetry/sdk/trace/export.rb', line 21 def initialize(spans) super("Unable to export #{spans.size} spans") @spans = spans end |
Instance Attribute Details
#spans ⇒ Array<OpenTelemetry::SDK::Trace::Span> (readonly)
Returns the Span array for this exception
18 19 20 |
# File 'lib/opentelemetry/sdk/trace/export.rb', line 18 def spans @spans end |