Class: PlatformSdk::Observability::Langfuse::NullSpanExporter
- Inherits:
-
OpenTelemetry::SDK::Trace::Export::InMemorySpanExporter
- Object
- OpenTelemetry::SDK::Trace::Export::InMemorySpanExporter
- PlatformSdk::Observability::Langfuse::NullSpanExporter
- Defined in:
- lib/platform_sdk/observability/langfuse/null_span_exporter.rb
Overview
Span exporter for tests and dev. Wraps OTel’s ‘InMemorySpanExporter` with two minor adjustments:
1. `shutdown` is a no-op (the base class clears `@finished_spans`
on shutdown). Our tests pervasively call
`configuration.force_flush_and_shutdown` and then assert on
exported spans — preserving the buffer across shutdown is
what makes that ergonomics work.
2. `exported_spans` / `clear` aliases for `finished_spans` /
`reset` so the names line up with how we talk about this
thing elsewhere in the SDK (and don't change call sites in
consumer apps).
Instance Method Summary collapse
Instance Method Details
#shutdown(timeout: nil) ⇒ Object
24 25 26 |
# File 'lib/platform_sdk/observability/langfuse/null_span_exporter.rb', line 24 def shutdown(timeout: nil) OpenTelemetry::SDK::Trace::Export::SUCCESS end |