diff --git a/spec/datadog/tracing/contrib/suite/integration_spec.rb b/spec/datadog/tracing/contrib/suite/integration_spec.rb index 0953ff60191..60e580e5fa2 100644 --- a/spec/datadog/tracing/contrib/suite/integration_spec.rb +++ b/spec/datadog/tracing/contrib/suite/integration_spec.rb @@ -255,6 +255,8 @@ def build(*dynamic_configurations) tracer.trace('test') { logger.error('test-log') } + SemanticLogger.flush + expect(io.string).to include('trace_id') io.truncate(0) @@ -266,6 +268,8 @@ def build(*dynamic_configurations) tracer.trace('test') { logger.error('test-log') } + SemanticLogger.flush + expect(io.string).to_not include('trace_id') end end