8000 Provide access to VM arguments via shared CLIHelper by mtoffl01 · Pull Request #8538 · DataDog/dd-trace-java · GitHub
[go: up one dir, main page]

Skip to content

Provide access to VM arguments via shared CLIHelper #8538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Mar 25, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix datadog.cli import
  • Loading branch information
mtoffl01 committed Mar 14, 2025
commit 7a9f694eea8e0126bee1f7731f68298b4ee95107
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import static java.nio.charset.StandardCharsets.UTF_8;

import datadog.cli;
import datadog.cli.CLIHelper;
import de.thetaphi.forbiddenapis.SuppressForbidden;
import java.io.BufferedReader;
import java.io.File;
Expand Down Expand Up @@ -381,7 +381,7 @@ private static List<File> getAgentFilesFromVMArguments() {
// - On IBM-based JDKs since at least 1.7
// This prevents custom log managers from working correctly
// Use reflection to bypass the loading of the class~
for (final String argument : cli.ARGS.getJvmArgs()) {
for (final String argument : CLIHelper.ARGS.getJvmArgs()) {
if (argument.startsWith(JAVA_AGENT_ARGUMENT)) {
int index = argument.indexOf('=', JAVA_AGENT_ARGUMENT.length());
String agentPathname =
Expand Down
Loading
0