Enable debug logs for debugger scenarios#6685
Conversation
|
|
This comment has been minimized.
This comment has been minimized.
| base_weblog_env: dict[str, str | None] = { | ||
| "DD_REMOTE_CONFIG_ENABLED": "1", | ||
| "DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS": "1", | ||
| "JAVA_OPTS": " -Ddatadog.slf4j.simpleLogger.log.com.datadog.debugger=debug ", |
There was a problem hiding this comment.
In theory, debug log must not be activated by default for QA reason (being as close as possible from our customer setups).
If you plan to run this in a dedicated CI env, or locally, you can achieve the same, but cleaner with the dedicated option to activate debug logs : --force-dd-trace-debug. To use it, you can add this in the configure method (line 39) :
if config.option.force_dd_trace_debug:
self.weblog_container.environment["JAVA_OPTS"] = " -Ddatadog.slf4j.simpleLogger.log.com.datadog.debugger=debug "Then, just add --force-dd-trace-debug to the run.sh command. Let me know if this work for you ?
There was a problem hiding this comment.
there is more and more flakiness in the tests, and not having the debug logs for tracer is problematic to catch and troubleshoot what exactly what's going on. this is only happening in CI and not reproducible locally.
Apart from performance I don't see how debug logs will bring QA difference of what we are trying to achieve with system-tests.
There was a problem hiding this comment.
Apart from performance
Yes, it's performance : it usually trigger many bugs that we are not interested.
But I understand your issue. It'll be unreasonnably complex to offer a per-scenario option in the official system-tests workflow, so I presume it's the best course of action.
Just keep in mind that once you've solved the flakyness you'll need to remove it? And may I ask you top add a small comment why we have temporary added this ?
There was a problem hiding this comment.
it usually trigger many bugs that we are not interested.
that's sound weird to me.
Keep it mind that all the runtimes are not equivalent on this...
Motivation
need to have debug logs to understand what is going on at tracer level, specially for flaky tests
Changes
Workflow
🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
tests/ormanifests/is modified ? I have the approval from R&P teambuild-XXX-imagelabel is present