diff --git a/lib/ddtrace/sync_writer.rb b/lib/ddtrace/sync_writer.rb index 87d049a72de..bcc8bcf72cb 100644 --- a/lib/ddtrace/sync_writer.rb +++ b/lib/ddtrace/sync_writer.rb @@ -41,6 +41,12 @@ def write(trace, services = nil) Logger.log.debug(e) end + # Added for interface completeness + def stop + # No cleanup to do for the SyncWriter + true + end + private def perform_concurrently(*tasks) diff --git a/spec/ddtrace/sync_writer_spec.rb b/spec/ddtrace/sync_writer_spec.rb index f6b62e8c465..0144dbd31d7 100644 --- a/spec/ddtrace/sync_writer_spec.rb +++ b/spec/ddtrace/sync_writer_spec.rb @@ -100,6 +100,11 @@ end end + describe '#stop' do + subject(:stop) { sync_writer.stop } + it { is_expected.to eq(true) } + end + describe 'integration' do context 'when initializing a tracer' do subject(:tracer) { Datadog::Tracer.new(writer: sync_writer) }