Skip to content

Commit 688af8e

Browse files
committed
separate resource extraction from supported interfaces
1 parent ea33358 commit 688af8e

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

instrumentation/resources/library/src/main/java9/io/opentelemetry/instrumentation/resources/ProcessArguments.java

Lines changed: 0 additions & 15 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package io.opentelemetry.instrumentation.resources.internal;
7+
8+
/**
9+
* This class is internal and is hence not for public use. Its APIs are unstable and can change
10+
* at any time.
11+
*/
12+
public final class ProcessArguments {
13+
14+
public static String[] getProcessArguments() {
15+
return ProcessHandle.current().info().arguments().orElseGet(() -> new String[0]);
16+
}
17+
18+
private ProcessArguments() {}
19+
}

0 commit comments

Comments
 (0)