module Trace::Backend
Constants
- TRACER
Provides a backend that writes data to OpenTelemetry. See <github.com/open-telemetry/opentelemetry-ruby> for more details.
Private Instance Methods
trace(name, parent = nil, attributes: nil) { || ... }
click to toggle source
# File lib/trace/backend/console.rb, line 29 def trace(name, parent = nil, attributes: nil, &block) Console.logger.measure(self, name, **attributes) do yield end end
trace_span_context(span)
click to toggle source
# File lib/trace/backend/datadog.rb, line 54 def trace_span_context(span) flags = 0 if span.sampled flags |= Context::SAMPLED end return Context.new( span.trace_id, span.span_id, flags, nil, remote: false ) end