diff --git a/ruby_event_store/lib/ruby_event_store/instrumented_repository.rb b/ruby_event_store/lib/ruby_event_store/instrumented_repository.rb index a70311818c..a5049e5e2d 100644 --- a/ruby_event_store/lib/ruby_event_store/instrumented_repository.rb +++ b/ruby_event_store/lib/ruby_event_store/instrumented_repository.rb @@ -61,6 +61,15 @@ def respond_to_missing?(method_name, _include_private) repository.respond_to?(method_name) end + def specification + "Instrumented " + + if repository.respond_to?(:specification) + repository.specification + else + repository.class.to_s + end + end + private attr_reader :repository, :instrumentation