From 51145ad88595b525965d468f91bc2a3634373072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Neum=C3=BCller?= Date: Tue, 24 Nov 2020 14:10:23 +0100 Subject: [PATCH] Add java.vm.name to process.runtime.description & more examples. (#1242) Co-authored-by: Armin Ruech --- CHANGELOG.md | 5 +++++ .../resource/semantic_conventions/process.md | 19 +++++++++++-------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c438bd35709..24465c66abd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ release. ## Unreleased +Updates: + +- `process.runtime.description` resource convention: Add `java.vm.name` + ([#1242](https://github.com/open-telemetry/opentelemetry-specification/pull/1242)) + ## v0.7.0 (11-18-2020) New: diff --git a/specification/resource/semantic_conventions/process.md b/specification/resource/semantic_conventions/process.md index 424c01a79fe..2cc2a178610 100644 --- a/specification/resource/semantic_conventions/process.md +++ b/specification/resource/semantic_conventions/process.md @@ -52,7 +52,7 @@ At least one of `process.executable.name`, `process.executable.path`, `process.c |---|---|---|--| | process.runtime.name | The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler. | `OpenJDK Runtime Environment` | No | | process.runtime.version | The version of the runtime of this process, as returned by the runtime without modification. | `14.0.2` | No | -| process.runtime.description | An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. | `Eclipse OpenJ9 openj9-0.21.0` | No | +| process.runtime.description | An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. | `Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0` | No | How to set these attributes for particular runtime kinds is described in the following subsections. @@ -87,18 +87,21 @@ Java instrumentation should fill in the values by copying from system properties - `process.runtime.name` - Fill in the value of `java.runtime.name` as is - `process.runtime.version` - Fill in the value of `java.runtime.version` as is -- `process.runtime.description` - Fill in the value of `java.vm.vendor`, followed by a space, followed by `java.vm.version` +- `process.runtime.description` - Fill in the values of `java.vm.vendor`, `java.vm.name`, `java.vm.version` + in that order, separated by spaces. Examples for some Java runtimes | Name | `process.runtime.name` | `process.runtime.version` | `process.runtime.description` | | --- | --- | --- | --- | -| OpenJDK | OpenJDK Runtime Environment | 11.0.8+10 | Oracle Corporation 11.0.8+10 | -| AdoptOpenJDK Eclipse J9 | OpenJDK Runtime Environment | 11.0.8+10 | Eclipse OpenJ9 openj9-0.21.0 | -| AdoptOpenJDK Hotspot | OpenJDK Runtime Environment | 11.0.8+10 | AdoptOpenJDK 11.0.8+10 | -| SapMachine | OpenJDK Runtime Environment | 11.0.8+10-LTS-sapmachine | SAP SE 11.0.8+10-LTS-sapmachine | -| Zulu OpenJDK | OpenJDK Runtime Environment | 11.0.8+10-LTS | Azul Systems, Inc Zulu11.41+23-CA | -| Android 11 | Android Runtime | 0.9 | The Android Project 2.1.0 | +| OpenJDK | OpenJDK Runtime Environment | 11.0.8+10 | Oracle Corporation OpenJDK 64-Bit Server VM 11.0.8+10 | +| AdoptOpenJDK Eclipse J9 | OpenJDK Runtime Environment | 11.0.8+10 | Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0 | +| AdoptOpenJDK Hotspot | OpenJDK Runtime Environment | 11.0.8+10 | AdoptOpenJDK OpenJDK 64-Bit Server VM 11.0.8+10 | +| SapMachine | OpenJDK Runtime Environment | 11.0.8+10-LTS-sapmachine | SAP SE OpenJDK 64-Bit Server VM 11.0.8+10-LTS-sapmachine | +| Zulu OpenJDK | OpenJDK Runtime Environment | 11.0.8+10-LTS | Azul Systems, Inc OpenJDK 64-Bit Server VM Zulu11.41+23-CA | +| Oracle Hotspot 8 (32 bit) | Java(TM) SE Runtime Environment | 1.8.0_221-b11 | Oracle Corporation Java HotSpot(TM) Client VM 25.221-b11 | +| IBM J9 8 | Java(TM) SE Runtime Environment | 8.0.5.25 - pwa6480sr5fp25-20181030_01(SR5 FP25) | IBM Corporation IBM J9 VM 2.9 | +| Android 11 | Android Runtime | 0.9 | The Android Project Dalvik 2.1.0 | ### JavaScript runtimes