Sha256: b6d35336f61c929d7c2aa03e00bb01879307216124aef61820ac5575d869d6eb
Contents?: true
Size: 413 Bytes
Versions: 94
Compression:
Stored size: 413 Bytes
Contents
module Datadog module Pipeline # SpanProcessor class SpanProcessor def initialize(operation = nil, &block) callable = operation || block raise(ArgumentError) unless callable.respond_to?(:call) @operation = operation || block end def call(trace) trace.each do |span| @operation.call(span) rescue next end end end end end
Version data entries
94 entries across 94 versions & 2 rubygems