Sha256: 029f71b90b72ab78d098b8ee9c8c3d71e906dc4da6a2dc1e574c7cb15d38abbe
Contents?: true
Size: 718 Bytes
Versions: 13
Compression:
Stored size: 718 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}" } end end end end
Version data entries
13 entries across 13 versions & 1 rubygems