opentelemetry-java/sdk_extensions/resources
jarebudev 20669f48b6
1556 change resourceconstants to resourceattributes (#1590)
* renamed ResourceConstants to ResourceAttributes, and change to use attributesetter pattern

* tidy up javadoc

* tidy up javadoc
2020-08-25 21:08:44 -07:00
..
src 1556 change resourceconstants to resourceattributes (#1590) 2020-08-25 21:08:44 -07:00
README.md Implement OS and some process resource attributes. (#1555) 2020-08-20 09:42:30 -07:00
build.gradle Implement OS and some process resource attributes. (#1555) 2020-08-20 09:42:30 -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.