Sha256: 83d05af11d0501fac68a2dc78551d20f5a6ee95f088e20e79d3e62d8daaae77d
Contents?: true
Size: 769 Bytes
Versions: 8
Compression:
Stored size: 769 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module SDK module Trace module Export # Outputs {SpanData} to the console. # # Potentially useful for exploratory purposes. class ConsoleSpanExporter def initialize @stopped = false end def export(spans, timeout: nil) return FAILURE if @stopped Array(spans).each { |s| pp s } SUCCESS end def force_flush(timeout: nil) SUCCESS end def shutdown(timeout: nil) @stopped = true SUCCESS end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems