Sha256: 6547e4eba61cddb6c0ac6194ad347bb618cd3995f0e31487a518401ae0fd43f3
Contents?: true
Size: 531 Bytes
Versions: 30
Compression:
Stored size: 531 Bytes
Contents
# frozen_string_literal: true require "sinatra" require "honeycomb/integrations/rack" require "honeycomb/integrations/warden" module Honeycomb # Sinatra specific methods for building middleware module Sinatra def add_package_information(env) yield "meta.package", "sinatra" yield "meta.package_version", ::Sinatra::VERSION yield "request.route", env["sinatra.route"] end # Sinatra middleware class Middleware include Rack include Warden include Sinatra end end end
Version data entries
30 entries across 30 versions & 1 rubygems