lib/garage/config.rb in the_garage-2.3.3 vs lib/garage/config.rb in the_garage-2.4.0
- old
+ new
@@ -34,9 +34,17 @@
# Garage.configuration.strategy = Garage::Strategy::AuthServer
def strategy
instance_variable_defined?(:@strategy) ? @strategy : Garage::Strategy::NoAuthentication
end
+ # Support distributed tracing for auth server accesses.
+ #
+ # @param [Ojbect] tracer an object which implements tracer methods. See Garage::Tracer::NullTracer.
+ attr_writer :tracer
+ def tracer
+ @tracer ||= Garage::Tracer::NullTracer
+ end
+
def docs
@docs ||= Docs::Config.new
end
def cast_resource