Sha256: 1f93c55479c51b75d7b2bb9b56d627bd9b11a6f517a14bd95a1badf10902949e

Contents?: true

Size: 486 Bytes

Versions: 1

Compression:

Stored size: 486 Bytes

Contents

module ILove
  module Tracing
    module Client
      def self.setup(cfg)
        case cfg.client
        when :jaeger
          require('jaeger/client') rescue raise("Add gem 'jaeger-client' to Gemfile")

          OpenTracing.global_tracer = Jaeger::Client.build(cfg.client_params)
        when :none
          nil
        when Symbol
          raise "Unknown client #{cfg.client}"
        else
          OpenTracing.global_tracer = cfg.client
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ilove-tracing-0.2.0 lib/ilove/tracing/client.rb