Skip to content

Commit 3e9d69d

Browse files
stevencurranclaude
andcommitted
fix: restore PYROSCOPE_TMP_DIR as the Java constant name in Config
Previous commit shortened it to TMP_DIR; restore the full name so the constant identifier matches its string value, consistent with the rest of the Config constants. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 5bd1c97 commit 3e9d69d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • agent/src/main/java/io/pyroscope/javaagent/config

‎agent/src/main/java/io/pyroscope/javaagent/config/Config.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public final class Config {
5858
private static final String PYROSCOPE_HTTP_HEADERS = "PYROSCOPE_HTTP_HEADERS";
5959
private static final String PYROSCOPE_TENANT_ID = "PYROSCOPE_TENANT_ID";
6060
private static final String PYROSCOPE_PROFILE_EXPORT_TIMEOUT = "PYROSCOPE_PROFILE_EXPORT_TIMEOUT";
61-
private static final String TMP_DIR = "PYROSCOPE_TMP_DIR";
61+
private static final String PYROSCOPE_TMP_DIR = "PYROSCOPE_TMP_DIR";
6262

6363
/**
6464
* Experimental feature, may be removed in the future
@@ -666,7 +666,7 @@ private static String tenantID(ConfigurationProvider cp) {
666666
}
667667

668668
private static String jfrDir(ConfigurationProvider cp) {
669-
return cp.get(TMP_DIR);
669+
return cp.get(PYROSCOPE_TMP_DIR);
670670
}
671671

672672
private static Duration samplingDuration(ConfigurationProvider configurationProvider) {

0 commit comments

Comments
 (0)