Skip to content

Commit 64c493f

Browse files
authored
Add comment (#14037)
1 parent c3e9e59 commit 64c493f

File tree

1 file changed

+2
-0
lines changed
  • instrumentation/resources/library/src/main/java/io/opentelemetry/instrumentation/resources

1 file changed

+2
-0
lines changed

instrumentation/resources/library/src/main/java/io/opentelemetry/instrumentation/resources/ProcessResource.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ private static Resource doBuildResource() {
9393

9494
String[] args = ProcessArguments.getProcessArguments();
9595
// This will only work with Java 9+ but provides everything except the executablePath.
96+
// Argument array may be empty on Java 9+ when the command line is too long, see
97+
// https://bugs.openjdk.org/browse/JDK-8345117
9698
if (args.length > 0) {
9799
List<String> commandArgs = new ArrayList<>(args.length + 1);
98100
commandArgs.add(executablePath.toString());

0 commit comments

Comments
 (0)