Sha256: dbea698ad57554460581cd76a8d27513f39d2399fb6fe8d7c5c046e4824e501c

Contents?: true

Size: 724 Bytes

Versions: 20

Compression:

Stored size: 724 Bytes

Contents

module Skylight
  module Formatters
    module HTTP
      # Build instrumentation options for HTTP queries
      #
      # @param [String] method HTTP method, e.g. get, post
      # @param [String] scheme HTTP scheme, e.g. http, https
      # @param [String] host Request host, e.g. example.com
      # @param [String, Integer] port Request port
      # @param [String] path Request path
      # @param [String] query Request query string
      # @return [Hash] a hash containing `:category`, `:title`, and `:annotations`
      def self.build_opts(method, _scheme, host, _port, _path, _query)
        { category: "api.http.#{method.downcase}", title: "#{method.upcase} #{host}", internal: true }
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
skylight-6.1.0.beta lib/skylight/formatters/http.rb
skylight-6.0.4 lib/skylight/formatters/http.rb
skylight-6.0.3 lib/skylight/formatters/http.rb
skylight-5.3.5 lib/skylight/formatters/http.rb
skylight-6.0.2 lib/skylight/formatters/http.rb
skylight-6.0.1 lib/skylight/formatters/http.rb
skylight-6.0.0 lib/skylight/formatters/http.rb
skylight-6.0.0.beta2 lib/skylight/formatters/http.rb
skylight-6.0.0.beta lib/skylight/formatters/http.rb
skylight-5.3.4 lib/skylight/formatters/http.rb
skylight-5.3.3 lib/skylight/formatters/http.rb
skylight-5.3.2 lib/skylight/formatters/http.rb
skylight-5.3.1 lib/skylight/formatters/http.rb
skylight-5.3.0 lib/skylight/formatters/http.rb
skylight-5.2.0 lib/skylight/formatters/http.rb
skylight-5.2.0.beta2 lib/skylight/formatters/http.rb
skylight-5.2.0.beta lib/skylight/formatters/http.rb
skylight-5.1.1 lib/skylight/formatters/http.rb
skylight-5.1.0.beta3 lib/skylight/formatters/http.rb
skylight-5.1.0.beta2 lib/skylight/formatters/http.rb