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

Version Path
honeycomb-beeline-3.1.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-3.0.1 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-3.0.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.11.1.pre.dev lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.11.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.10.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.9.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.8.2 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.8.1 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.8.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.7.1 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.7.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.6.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.5.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.4.2 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.4.1 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.4.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.3.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.2.0 lib/honeycomb/integrations/sinatra.rb
honeycomb-beeline-2.1.2 lib/honeycomb/integrations/sinatra.rb