Sha256: 99cc6226e7065275d9c2007002696455a607dfecb0099e472ce1ca5f7b5d121c
Contents?: true
Size: 747 Bytes
Versions: 6
Compression:
Stored size: 747 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
6 entries across 6 versions & 1 rubygems