lib/elastic_apm/agent.rb in elastic-apm-2.10.1 vs lib/elastic_apm/agent.rb in elastic-apm-2.11.0
- old
+ new
@@ -157,24 +157,30 @@
def end_transaction(result = nil)
instrumenter.end_transaction(result)
end
+ # rubocop:disable Metrics/ParameterLists
def start_span(
name = nil,
type = nil,
+ subtype: nil,
+ action: nil,
backtrace: nil,
context: nil,
trace_context: nil
)
instrumenter.start_span(
name,
type,
+ subtype: subtype,
+ action: action,
backtrace: backtrace,
context: context,
trace_context: trace_context
)
end
+ # rubocop:enable Metrics/ParameterLists
def end_span
instrumenter.end_span
end