Sha256: 82e7eba95d040259f3941848affdf2568a5a63b54507d81e849a441c7c2e7e95
Contents?: true
Size: 908 Bytes
Versions: 2
Compression:
Stored size: 908 Bytes
Contents
require_relative '../tracing/metadata/ext' require_relative '../tracing/flush' module Datadog module CI module Flush # Common behavior for CI flushing module Tagging # Decorate a trace with CI tags def get_trace(trace_op) trace = trace_op.flush! # Origin tag is required on every span trace.spans.each do |span| span.set_tag( Tracing::Metadata::Ext::Distributed::TAG_ORIGIN, trace.origin ) end trace end end # Consumes only completed traces (where all spans have finished) class Finished < Tracing::Flush::Finished prepend Tagging end # Performs partial trace flushing to avoid large traces residing in memory for too long class Partial < Tracing::Flush::Partial prepend Tagging end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddtrace-1.10.1 | lib/datadog/ci/flush.rb |
ddtrace-1.10.0 | lib/datadog/ci/flush.rb |