Sha256: 08589f0a28117aa2523f3d5858fb1b2d3ea5afdc99947f760252e5d0dfd4e74d
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 Bytes
Contents
# frozen_string_literal: true module ElasticAPM class Span class Context # @api private class Http def initialize(url: nil, status_code: nil, method: nil) @url = sanitize_url(url) @status_code = status_code @method = method end attr_accessor :url, :status_code, :method private def sanitize_url(uri_or_str) uri = uri_or_str.is_a?(URI) ? uri_or_str.dup : URI(uri_or_str) uri.password = nil uri.to_s end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
elastic-apm-3.6.0 | lib/elastic_apm/span/context/http.rb |
elastic-apm-3.5.0 | lib/elastic_apm/span/context/http.rb |
elastic-apm-3.4.0 | lib/elastic_apm/span/context/http.rb |