GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Migrate products and instrumentations to environment component by PerfectSlayer · Pull Request #9290 · DataDog/dd-trace-java

Migrate products and instrumentations to environment component #9290

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.

Sign up for GitHub

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
PerfectSlayer merged 9 commits into master from bbujon/environment-step1
Aug 1, 2025

Uh oh!

There was an error while loading. Please reload this page.

Merged

Migrate products and instrumentations to environment component #9290

Changes from 1 commit
Commits
Show all changes
9 commits
Select commit Hold shift + click to select a range
fa6e313
feat(civis): Migrate CI Visibility to environment component
PerfectSlayer Jul 17, 2025
392db1a
feat(env): Migrate communication to environment component
PerfectSlayer Jul 18, 2025
2ce9c27
feat(env): Migrate crash tracking to environment component
PerfectSlayer Jul 18, 2025
a69f033
feat(env): Migrate debugger to environment component
PerfectSlayer Jul 18, 2025
cd5f2c3
feat(env): Migrate jmxfetch to environment component
PerfectSlayer Jul 18, 2025
5b752eb
feat(env): Migrate logging to environment component
PerfectSlayer Jul 18, 2025
21957a8
feat(env): Migrate profiling to environment component
PerfectSlayer Jul 18, 2025
f31a12c
feat(env): Migrate security libraries to environment component
PerfectSlayer Jul 18, 2025
3925256
feat(env): Migrate intrumentations to environment component
PerfectSlayer Jul 18, 2025
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
feat(env): Migrate jmxfetch to environment component
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@PerfectSlayer
PerfectSlayer committed Aug 1, 2025
commit cd5f2c3b0350c122e9a767082bd515d0abdabd63

There are no files selected for viewing

10 changes: 6 additions & 4 deletions 10 dd-java-agent/agent-jmxfetch/src/main/java/datadog/trace/agent/jmxfetch/JMXFetch.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import static datadog.trace.util.AgentThreadFactory.newAgentThread;
import static org.datadog.jmxfetch.AppConfig.ACTION_COLLECT;

import datadog.environment.SystemProperties;
import datadog.trace.api.Config;
import datadog.trace.api.GlobalTracer;
import datadog.trace.api.StatsDClient;
Expand Down Expand Up @@ -47,9 +48,9 @@ private static void run(final StatsDClientManager statsDClientManager, final Con
}

if (!log.isDebugEnabled()
&& System.getProperty("org.slf4j.simpleLogger.log.org.datadog.jmxfetch") == null) {
&& SystemProperties.get("org.slf4j.simpleLogger.log.org.datadog.jmxfetch") == null) {
// Reduce noisiness of jmxfetch logging.
System.setProperty("org.slf4j.simpleLogger.log.org.datadog.jmxfetch", "warn");
SystemProperties.set("org.slf4j.simpleLogger.log.org.datadog.jmxfetch", "warn");
}

final String jmxFetchConfigDir = config.getJmxFetchConfigDir();
Expand Down Expand Up @@ -217,10 +218,11 @@ private static List<String> getInternalMetricFiles() {
}

private static String getLogLocation() {
return System.getProperty("org.slf4j.simpleLogger.logFile", "System.err");
return SystemProperties.getOrDefault("org.slf4j.simpleLogger.logFile", "System.err");
}

private static String getLogLevel() {
return System.getProperty("org.slf4j.simpleLogger.defaultLogLevel", "info").toUpperCase();
return SystemProperties.getOrDefault("org.slf4j.simpleLogger.defaultLogLevel", "info")
.toUpperCase();
}
}
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.