Sha256: 39bd236a6ba2e061bff2d5b5efba77c1170d591329bbf468fe262749de06953f
Contents?: true
Size: 901 Bytes
Versions: 15
Compression:
Stored size: 901 Bytes
Contents
# frozen_string_literal: true module ElasticAPM class Span # @api private class Context def initialize(db: nil, http: nil, tags: {}) @sync = true @db = db && Db.new(db) @http = http && Http.new(http) @tags = tags end attr_accessor :sync, :db, :http, :tags # @api private class Db def initialize(instance: nil, statement: nil, type: nil, user: nil) @instance = instance @statement = statement @type = type @user = user end attr_accessor :instance, :statement, :type, :user end # @api private class Http def initialize(url: nil, status_code: nil, method: nil) @url = url @status_code = status_code @method = method end attr_accessor :url, :status_code, :method end end end end
Version data entries
15 entries across 15 versions & 1 rubygems