opentelemetry-java/api/all
jack-berg 98369a5aad
Return noop instrument if name is invalid (#4383)
* Return noop instrument if name is invalid

* Validate instrument name in default meter

* Use API Usage logger and include stack trace

* Rename methods to check* instead of is*
2022-04-20 13:25:00 -05:00
..
src Return noop instrument if name is invalid (#4383) 2022-04-20 13:25:00 -05:00
README.md Single logger instance for invalid API call (#4073) 2022-01-12 13:16:09 +09:00
build.gradle.kts decommission the deprecated Gradle archivesBaseName property (#3878) 2021-11-15 10:55:08 -08:00

README.md

OpenTelemetry API

Javadocs

  • The code in this module is the implementation of stable OpenTelemetry signals.
  • Semantic Conventions for OpenTelemetry are in the opentelemetry-semconv module.
  • The default implementation of the interfaces in this module is in the OpenTelemetry SDK module.
  • The interfaces in this directory can be implemented to create alternative implementations of the OpenTelemetry library.

Running micro-benchmarks

From the root of the repo run ./gradlew clean :api:jmh to run all the benchmarks or run ./gradlew clean :api:jmh -PjmhIncludeSingleClass=<ClassNameHere> to run a specific benchmark class.


Logging API mis-use

Define logging.level.io.opentelemetry.ApiUsageLogging=TRACE to enable TRACE logging for invalid API calls.