lib/flipper/adapters/instrumented.rb in flipper-0.7.0.beta3 vs lib/flipper/adapters/instrumented.rb in flipper-0.7.0.beta4
- old
+ new
@@ -1,9 +1,11 @@
require 'flipper/adapters/decorator'
require 'flipper/instrumenters/noop'
module Flipper
module Adapters
+ # Internal: Adapter that wraps another adapter and instruments all adapter
+ # operations. Used by flipper dsl to provide instrumentatin for flipper.
class Instrumented < Decorator
# Private: The name of instrumentation events.
InstrumentationName = "adapter_operation.#{InstrumentationNamespace}"
# Private: What is used to instrument all the things.