GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NassimBtk/opentelemetry-java-instrumentation: OpenTelemetry auto-instrumentation and instrumentation libraries for Java

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

8,509 Commits
8,509 Commits

Folders and files

NameName
Last commit message
Last commit date
.githooks
.githooks
 
 
.github
.github
 
 
benchmark-jfr-analyzer
benchmark-jfr-analyzer
 
 
benchmark-overhead-jmh
benchmark-overhead-jmh
 
 
benchmark-overhead
benchmark-overhead
 
 
bom-alpha
bom-alpha
 
 
bom
bom
 
 
buildscripts
buildscripts
 
 
conventions
conventions
 
 
custom-checks
custom-checks
 
 
dependencyManagement
dependencyManagement
 
 
docs
docs
 
 
examples
examples
 
 
gradle-plugins
gradle-plugins
 
 
gradle/wrapper
gradle/wrapper
 
 
instrumentation-annotations-support-testing
instrumentation-annotations-support-testing
 
 
instrumentation-annotations-support
instrumentation-annotations-support
 
 
instrumentation-annotations
instrumentation-annotations
 
 
instrumentation-api-semconv
instrumentation-api-semconv
 
 
instrumentation-api
instrumentation-api
 
 
instrumentation
instrumentation
 
 
javaagent-bootstrap
javaagent-bootstrap
 
 
javaagent-extension-api
javaagent-extension-api
 
 
javaagent-internal-logging-simple
javaagent-internal-logging-simple
 
 
javaagent-tooling
javaagent-tooling
 
 
javaagent
javaagent
 
 
licenses
licenses
 
 
muzzle
muzzle
 
 
opentelemetry-api-shaded-for-instrumenting
opentelemetry-api-shaded-for-instrumenting
 
 
opentelemetry-ext-annotations-shaded-for-instrumenting
opentelemetry-ext-annotations-shaded-for-instrumenting
 
 
opentelemetry-instrumentation-annotations-shaded-for-instrumenting
opentelemetry-instrumentation-annotations-shaded-for-instrumenting
 
 
opentelemetry-instrumentation-api-shaded-for-instrumenting
opentelemetry-instrumentation-api-shaded-for-instrumenting
 
 
smoke-tests
smoke-tests
 
 
testing-common
testing-common
 
 
testing
testing
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.markdownlint.yml
.markdownlint.yml
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RELEASING.md
RELEASING.md
 
 
VERSIONING.md
VERSIONING.md
 
 
build.gradle.kts
build.gradle.kts
 
 
code-of-conduct.md
code-of-conduct.md
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 
version.gradle.kts
version.gradle.kts
 
 

Repository files navigation


Getting Started   •   Getting Involved   •   Getting In Touch

Build Status GitHub release (latest by date including pre-releases) Beta

Contributing   •   Scope


OpenTelemetry Icon OpenTelemetry Instrumentation for Java

  • About
  • Getting Started
  • Configuring the Agent
  • Supported libraries, frameworks, and application servers
  • Creating agent extensions
  • Manually instrumenting
  • Logger MDC auto-instrumentation
  • Troubleshooting
  • Contributing

About

This project provides a Java agent JAR that can be attached to any Java 8+ application and dynamically injects bytecode to capture telemetry from a number of popular libraries and frameworks. You can export the telemetry data in a variety of formats. You can also configure the agent and exporter via command line arguments or environment variables. The net result is the ability to gather telemetry data from a Java application without code changes.

This repository also publishes standalone instrumentation for several libraries (and growing) that can be used if you prefer that over using the Java agent. Please see the standalone library instrumentation column on Supported Libraries. if you are looking for documentation on using those.

Getting Started

Download the latest version.

This package includes the instrumentation agent as well as instrumentations for all supported libraries and all available data exporters. The package provides a completely automatic, out-of-the-box experience.

Enable the instrumentation agent using the -javaagent flag to the JVM.

java -javaagent:path/to/opentelemetry-javaagent.jar \
     -jar myapp.jar

By default, the OpenTelemetry Java agent uses OTLP exporter configured to send data to OpenTelemetry collector at http://localhost:4317.

Configuration parameters are passed as Java system properties (-D flags) or as environment variables. See the configuration documentation for the full list of configuration items. For example:

java -javaagent:path/to/opentelemetry-javaagent.jar \
     -Dotel.resource.attributes=service.name=your-service-name \
     -Dotel.traces.exporter=zipkin \
     -jar myapp.jar

Configuring the Agent

The agent is highly configurable! Many aspects of the agent's behavior can be configured for your needs, such as exporter choice, exporter config (like where data is sent), trace context propagation headers, and much more.

Click here to see the detailed list of configuration environment variables and system properties.

Note: Config parameter names are very likely to change over time, so please check back here when trying out a new version! Please report any bugs or unexpected behavior you find.

Supported libraries, frameworks, and application servers

We support an impressively huge number of libraries and frameworks and a majority of the most popular application servers...right out of the box! Click here to see the full list and to learn more about disabled instrumentation and how to suppress unwanted instrumentation.

Creating agent extensions

Extensions add new features and capabilities to the agent without having to create a separate distribution or to fork this repository. For example, you can create custom samplers or span exporters, set new defaults, and embed it all in the agent to obtain a single jar file.

Manually instrumenting

For most users, the out-of-the-box instrumentation is completely sufficient and nothing more has to be done. Sometimes, however, users wish to add attributes to the otherwise automatic spans, or they might want to manually create spans for their own custom code.

For detailed instructions, see Manual instrumentation.

Logger MDC (Mapped Diagnostic Context) auto-instrumentation

It is possible to inject trace information like trace IDs and span IDs into your custom application logs. For details, see Logger MDC auto-instrumentation.

Troubleshooting

To turn on the agent's internal debug logging:

-Dotel.javaagent.debug=true

Note: These logs are extremely verbose. Enable debug logging only when needed. Debug logging negatively impacts the performance of your application.

Contributing

See CONTRIBUTING.md.

Triagers (@open-telemetry/java-instrumentation-triagers):

  • Jason Plumb, Splunk

Approvers (@open-telemetry/java-instrumentation-approvers):

  • Jack Berg, New Relic
  • John Watson, Verta.ai

Maintainers (@open-telemetry/java-instrumentation-maintainers):

  • Lauri Tulmin, Splunk
  • Mateusz Rzeszutek, Splunk
  • Trask Stalnaker, Microsoft

Emeritus maintainers:

  • Nikita Salnikov-Tarnovski, Splunk

Learn more about roles in the community repository.

Thanks to all the people who already contributed!

About

OpenTelemetry auto-instrumentation and instrumentation libraries for Java

opentelemetry.io

Resources

Readme
License

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.