Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com> |
||
|---|---|---|
| .. | ||
| agent | ||
| custom | ||
| gradle/wrapper | ||
| instrumentation | ||
| smoke-tests | ||
| README.md | ||
| build.gradle | ||
| gradlew | ||
| gradlew.bat | ||
| settings.gradle | ||
README.md
Introduction
This repository serves as a collection of examples of extending functionality of OpenTelemetry Java instrumentation agent. It demonstrates how to repackage the aforementioned agent adding custom functionality. For every extension point provided by OpenTelemetry Java instrumentation, this repository contains an example of its usage.
General structure
This repository has four main submodules:
customcontains all custom functionality, SPI and other extensionsagentcontains the main repackaging functionality and, optionally, an entry point to the agent, if one wishes to customize thatinstrumentationcontains custom instrumentations added by vendorsmoke-testscontains simple tests to verify that resulting agent builds and applies correctly
Extensions examples
- DemoIdGenerator - custom
IdGenerator - DemoPropagator - custom
TextMapPropagator - DemoPropertySource - default configuration
- DemoSampler - custom
Sampler - DemoSpanProcessor - custom
SpanProcessor - DemoSpanExporter - custom
SpanExporter - DemoServlet3Instrumentation - additional instrumentation