Skip to content

Commit

Permalink
- OTEL scope attribute fixes
Browse files Browse the repository at this point in the history
- Patch version bump.
  • Loading branch information
jjzazuet committed Nov 8, 2024
1 parent 390797d commit b3596e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/vacco/shax/otel/OtContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static Map<String, String> getJvmAttributes() {
var pid = runtimeName.split("@")[0];

jvmIdx.put(OtProcessPid, pid);
jvmIdx.put(OtServiceInstanceId, Integer.toHexString(Integer.parseInt(pid)));
jvmIdx.put(OtServiceInstanceId, Integer.toHexString(runtimeName.hashCode()));

var javaCommand = getProperty("sun.java.command");
if (javaCommand != null) {
Expand Down

0 comments on commit b3596e9

Please sign in to comment.