Module: Trace
- Defined in:
- lib/zipkin-tracer/trace.rb,
lib/zipkin-tracer/zipkin_json_tracer.rb,
lib/zipkin-tracer/zipkin_null_tracer.rb,
lib/zipkin-tracer/zipkin_tracer_base.rb,
lib/zipkin-tracer/zipkin_kafka_tracer.rb,
lib/zipkin-tracer/zipkin_logger_tracer.rb
Defined Under Namespace
Classes: Annotation, BinaryAnnotation, Endpoint, NullTracer, Span, ZipkinJsonTracer, ZipkinKafkaTracer, ZipkinLoggerTracer, ZipkinTracerBase
Class Method Summary collapse
-
.tracer ⇒ Object
We need this to access the tracer from the Faraday middleware.
- .with_trace_id(trace_id, &block) ⇒ Object
Class Method Details
.tracer ⇒ Object
We need this to access the tracer from the Faraday middleware.
7 8 9 |
# File 'lib/zipkin-tracer/trace.rb', line 7 def self.tracer @tracer end |
.with_trace_id(trace_id, &block) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/zipkin-tracer/trace.rb', line 11 def self.with_trace_id(trace_id, &block) self.push(trace_id) yield ensure self.pop end |