Skip to content

Commit 60d8460

Browse files
adinauerclaude
andcommitted
fix(test): Set SENTRY_ENABLE_QUEUE_TRACING for Kafka system tests
When SENTRY_AUTO_INIT=true with the OTel agent, Sentry is initialized early by SentryAutoConfigurationCustomizerProvider before Spring Boot loads application-kafka.properties. Without the env var, queue tracing stays disabled and OTel messaging spans are not mapped to queue.publish/queue.process ops, causing KafkaOtelCoexistenceSystemTest to fail. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9234efd commit 60d8460

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/system-test-runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ def start_spring_server(self, sample_module: str, java_agent: str, java_agent_au
442442

443443
if self.module_requires_kafka_profile(sample_module):
444444
env["SPRING_PROFILES_ACTIVE"] = "kafka"
445+
env["SENTRY_ENABLE_QUEUE_TRACING"] = "true"
445446
print("Enabling Spring profile: kafka")
446447
else:
447448
env.pop("SPRING_PROFILES_ACTIVE", None)

0 commit comments

Comments
 (0)