opentelemetry-java/sdk-extensions/resources
wzy531a aea98ba885
Fix container detection fails in k8s with containerd v1.5.0+ environments (#4733)
* pr with issue#4730

* PR for issue#4730

Signed-off-by: wuzhaoyin <1449259282@qq.com>

* Annotation adjustment

Signed-off-by: wuzhaoyin <1449259282@qq.com>

* fix code owner review required fail

Signed-off-by: wuzhaoyin <1449259282@qq.com>

Signed-off-by: wuzhaoyin <1449259282@qq.com>
2022-09-08 11:23:45 -05:00
..
src Fix container detection fails in k8s with containerd v1.5.0+ environments (#4733) 2022-09-08 11:23:45 -05:00
README.md Add missing readmes and missing javadoc links (#3500) 2021-08-16 12:36:54 -07:00
build.gradle.kts Enable loggers in all tests via slf4j. (#4126) 2022-02-02 14:43:25 +09:00

README.md

OpenTelemetry Resource Providers

Javadocs

This package includes some standard ResourceProviders for filling in attributes related to common environments. Currently the resources provide the following semantic conventions

Populated attributes

Operating System

Provider: io.opentelemetry.sdk.extension.resources.OsResource

Specification: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/resource/semantic_conventions/os.md

Implemented attributes:

  • os.name
  • os.description

Process

Implementation: io.opentelemetry.sdk.extension.resources.ProcessResource

Specification: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/resource/semantic_conventions/process.md#process

Implemented attributes:

  • process.pid
  • process.executable.path (note, we assume the java binary is located in the bin subfolder of JAVA_HOME)
  • process.command_line (note this includes all system properties and arguments when running)

Java Runtime

Implementation: io.opentelemetry.sdk.extension.resources.ProcessRuntimeResource

Specification: https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/resource/semantic_conventions/process.md#process-runtimes

Implemented attributes:

  • process.runtime.name
  • process.runtime.version
  • process.runtime.description

Platforms

This package currently does not run on Android. It has been verified on OpenJDK and should work on other server JVM distributions but if you find any issues please let us know.