Sha256: 2b0e4daf43e7b333bbb9352833a697d4993c526968f8dbe13132487ce00714c1
Contents?: true
Size: 536 Bytes
Versions: 7
Compression:
Stored size: 536 Bytes
Contents
# frozen_string_literal: true module Jaeger module Reporters class LoggingReporter def initialize(logger: Logger.new($stdout)) @logger = logger end def report(span) span_info = { operation_name: span.operation_name, start_time: span.start_time.iso8601, end_time: span.end_time.iso8601, trace_id: span.context.to_trace_id, span_id: span.context.to_span_id } @logger.info "Span reported: #{span_info}" end end end end
Version data entries
7 entries across 7 versions & 3 rubygems