opentelemetry-java/sdk_extensions/resources
Anuraag Agrawal 3d69aa19a8
Restore source/targetCompatibility declarations for intellij to set version correctly and remo… (#1920)
* Restore source/targetCompatibility declarations for intellij and remove animalsniffer for java 8.

* Newer syntax
2020-10-29 08:11:15 -07:00
..
src Move API packages to .api. package (#1892) 2020-10-28 08:39:41 +09:00
README.md Implement OS and some process resource attributes. (#1555) 2020-08-20 09:42:30 -07:00
build.gradle Restore source/targetCompatibility declarations for intellij to set version correctly and remo… (#1920) 2020-10-29 08:11:15 -07:00

README.md

OpenTelemetry Resource Providers

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.extensions.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.extensions.resources.ProcessResource

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

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)

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.