module Rack::Honeycomb

Constants

APP_FIELD_NAMESPACE

Custom fields added via the `env` will be added to the Honeycomb event under this namespace prefix

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.

RACK_VERSION
VERSION

Public Class Methods

add_field(env, field, value) click to toggle source
# File lib/rack/honeycomb/middleware.rb, line 240
def add_field(env, field, value)
  env["#{ENV_PREFIX}#{field}"] = value
end