Sha256: 4c58c41f32094ce10f88ae5550177e4a8638bc906fd4f2910f228888938d9c4e
Contents?: true
Size: 790 Bytes
Versions: 1
Compression:
Stored size: 790 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module SDK module Logs module Export # Outputs {LogRecordData} to the console. # # Potentially useful for exploratory purposes. class ConsoleLogRecordExporter def initialize @stopped = false end def export(log_records, timeout: nil) return FAILURE if @stopped Array(log_records).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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opentelemetry-logs-sdk-0.1.0 | lib/opentelemetry/sdk/logs/export/console_log_record_exporter.rb |