Module: Honeycomb::Sinatra

Included in:
Middleware
Defined in:
lib/honeycomb/integrations/sinatra.rb

Overview

Sinatra specific methods for building middleware

Defined Under Namespace

Classes: Middleware

Instance Method Summary collapse

Instance Method Details

#add_package_information(env) {|"meta.package", "sinatra"| ... } ⇒ Object

Yields:

  • ("meta.package", "sinatra")


10
11
12
13
14
15
# File 'lib/honeycomb/integrations/sinatra.rb', line 10

def add_package_information(env)
  yield "meta.package", "sinatra"
  yield "meta.package_version", ::Sinatra::VERSION

  yield "request.route", env["sinatra.route"]
end