The Jaeger Observability Extension is one of the tracing extensions of the Ballerina language.
It provides an implementation for tracing and publishing traces to a Jaeger Agent.
To package the Jaeger extension into the Jar, follow the following steps.
- Add the following import to your program.
import ballerinax/jaeger as _;
- Add the following to the
Ballerina.toml
when building your program.
[package]
org = "my_org"
name = "my_package"
version = "1.0.0"
[build-options]
observabilityIncluded=true
To enable the extension and publish traces to Jaeger, add the following to the Config.toml
when running your program.
[ballerina.observe]
tracingEnabled=true
tracingProvider="jaeger"
[ballerinax.jaeger]
agentHostname="127.0.0.1" # Optional Configuration. Default value is localhost
agentPort=6831 # Optional Configuration. Default value is 6831
-
Download and install Java SE Development Kit (JDK) version 11 (from one of the following locations).
Execute the commands below to build from source.
-
To build the library:
./gradlew clean build
-
To run the integration tests:
./gradlew clean test
As an open source project, Ballerina welcomes contributions from the community.
For more information, go to the contribution guidelines.
All contributors are encouraged to read the Ballerina Code of Conduct.
- Discuss about code changes of the Ballerina project in [email protected].
- Chat live with us via our Slack channel.
- Post all technical questions on Stack Overflow with the #ballerina tag.
- View the Ballerina performance test results.