Sha256: d3891823bb8cd2ff9f5970aebb0eea55d987192fc6a8668060ddf1c450614c58
Contents?: true
Size: 721 Bytes
Versions: 2
Compression:
Stored size: 721 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
skylight-5.0.0.beta2 | lib/skylight/formatters/http.rb |
skylight-5.0.0.beta | lib/skylight/formatters/http.rb |