module ElasticAPM
def self.transaction(name = nil, type = nil, context: nil, &block)
-
(Transaction)- Unless block given
Other tags:
- Yield: - Optional block encapsulating transaction
Parameters:
-
context(Context) -- An optional [Context] -
type(String) -- The kind of the transaction, eg `app.request.get` or -
name(String) -- A description of the transaction, eg
def self.transaction(name = nil, type = nil, context: nil, &block) return (block_given? ? yield : nil) unless agent agent.transaction(name, type, context: context, &block) end