Module: Rack::Honeycomb
- Defined in:
- lib/rack/honeycomb.rb,
lib/rack-honeycomb/railtie.rb,
lib/rack/honeycomb/version.rb,
lib/rack/honeycomb/middleware.rb,
lib/rack-honeycomb/auto_install.rb
Defined Under Namespace
Modules: AutoInstall Classes: Middleware, Railtie
Constant Summary collapse
- VERSION =
"0.5.0"
- ENV_PREFIX =
Prefix for attaching custom fields to the ‘env`. Will be deleted from the `env` once it’s pulled off of the ‘env` and onto a Honeycomb event.
"honeycomb."
- APP_FIELD_NAMESPACE =
Custom fields added via the ‘env` will be added to the Honeycomb event under this namespace prefix
'app'.freeze
- RACK_VERSION =
::Rack::VERSION.join('.').freeze
Class Method Summary collapse
Class Method Details
.add_field(env, field, value) ⇒ Object
240 241 242 |
# File 'lib/rack/honeycomb/middleware.rb', line 240 def add_field(env, field, value) env["#{ENV_PREFIX}#{field}"] = value end |