Module: Skylight::Core::Formatters::HTTP
- Defined in:
- lib/skylight/core/formatters/http.rb
Class Method Summary collapse
-
.build_opts(method, scheme, host, port, path, query) ⇒ Hash
Build instrumentation options for HTTP queries.
Class Method Details
.build_opts(method, scheme, host, port, path, query) ⇒ Hash
Build instrumentation options for HTTP queries
15 16 17 18 19 |
# File 'lib/skylight/core/formatters/http.rb', line 15 def self.build_opts(method, scheme, host, port, path, query) { category: "api.http.#{method.downcase}", title: "#{method.upcase} #{host}", meta: { host: host } } end |