module ElasticAPM::Fields::ClassMethods

Attributes

fields[R]
optionals[R]

Public Instance Methods

field(key, optional: false) click to toggle source
# File lib/elastic_apm/fields.rb, line 70
def field(key, optional: false)
  attr_accessor(key)

  fields.push(key)
  optionals.push(key) if optional
end