Module: OpenTelemetry::Instrumentation::Rake::Patches::Task
- Defined in:
- lib/opentelemetry/instrumentation/rake/patches/task.rb
Overview
Module to prepend to Rask::Task for instrumentation
Instance Method Summary collapse
Instance Method Details
#execute(args = nil) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/opentelemetry/instrumentation/rake/patches/task.rb', line 17 def execute(args = nil) tracer.in_span('rake.execute', attributes: { 'rake.task' => name }) do super end ensure force_flush end |
#invoke(*args) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/opentelemetry/instrumentation/rake/patches/task.rb', line 9 def invoke(*args) tracer.in_span('rake.invoke', attributes: { 'rake.task' => name }) do super end ensure force_flush end |