Module: Datadog::CI::ContextFlush::Tagging

Included in:
Finished, Partial
Defined in:
lib/datadog/ci/context_flush.rb

Overview

Common behavior for CI flushing

Instance Method Summary collapse

Instance Method Details

#get_trace(context) ⇒ Object

Decorate a trace with CI tags



10
11
12
13
14
15
# File 'lib/datadog/ci/context_flush.rb', line 10

def get_trace(context)
  context.get do |trace|
    # Origin tag is required on every span
    trace.each { |span| context.attach_origin(span) } if trace
  end
end