Sha256: 8a48974841103a85186e002d5fd67fd6bfa70e13f56f0e11b962f3e377bcbc6c

Contents?: true

Size: 838 Bytes

Versions: 56

Compression:

Stored size: 838 Bytes

Contents

# frozen_string_literal: true

module Deimos
  module Tracing
    # Base class for all tracing providers.
    class Provider
      # Returns a span object and starts the trace.
      # @param span_name [String] The name of the span/trace
      # @param options [Hash] Options for the span
      # @return [Object] The span object
      def start(span_name, options={})
        raise NotImplementedError
      end

      # Finishes the trace on the span object.
      # @param span [Object] The span to finish trace on
      def finish(span)
        raise NotImplementedError
      end

      # Set an error on the span.
      # @param span [Object] The span to set error on
      # @param exception [Exception] The exception that occurred
      def set_error(span, exception)
        raise NotImplementedError
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 2 rubygems

Version Path
deimos-ruby-1.15.1 lib/deimos/tracing/provider.rb
deimos-ruby-1.15.0 lib/deimos/tracing/provider.rb
deimos-ruby-1.14.6 lib/deimos/tracing/provider.rb
deimos-ruby-1.14.5 lib/deimos/tracing/provider.rb
deimos-ruby-1.14.4 lib/deimos/tracing/provider.rb
deimos-ruby-1.14.3 lib/deimos/tracing/provider.rb
deimos-ruby-1.14.2 lib/deimos/tracing/provider.rb
deimos-ruby-1.14.1 lib/deimos/tracing/provider.rb
deimos-ruby-1.14.0 lib/deimos/tracing/provider.rb
deimos-ruby-1.13.3 lib/deimos/tracing/provider.rb
deimos-ruby-1.13.2 lib/deimos/tracing/provider.rb
deimos-ruby-1.13.1 lib/deimos/tracing/provider.rb
deimos-ruby-1.13.0 lib/deimos/tracing/provider.rb
deimos-ruby-1.12.6 lib/deimos/tracing/provider.rb
deimos-ruby-1.12.5 lib/deimos/tracing/provider.rb
deimos-ruby-1.12.4 lib/deimos/tracing/provider.rb
deimos-ruby-1.12.3 lib/deimos/tracing/provider.rb
deimos-ruby-1.12.2 lib/deimos/tracing/provider.rb
deimos-ruby-1.12.1 lib/deimos/tracing/provider.rb
deimos-ruby-1.12.0 lib/deimos/tracing/provider.rb