Module jaeger

ballerinax/jaeger Ballerina library

1.1.1

Overview

The Jaeger Observability Extension provides an implementation for tracing and publishing traces to a Jaeger Agent.

Key Features

  • Publish distributed traces to a Jaeger Agent via OpenTelemetry
  • Configurable sampler type and parameters
  • Support for trace logging to console and file
  • Configurable reporter flush interval and buffer size

Enabling Jaeger Extension

To package the Jaeger extension into the Jar, follow the following steps.

  1. Add the following import to your program.
Copy
import ballerinax/jaeger as _;
  1. Add the following to the Ballerina.toml when building your program.
Copy
[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.

Copy
[ballerina.observe]
tracingEnabled=true
tracingProvider="jaeger"

[ballerinax.jaeger]
agentHostname="127.0.0.1"       # Optional Configuration. Default value is localhost
agentPort=4317                  # Optional Configuration. Default value is 55680
samplerType="const"             # Optional Configuration. Default value is const
samplerParam=1                  # Optional Configuration. Default value is 1
reporterFlushInterval=1000      # Optional Configuration. Default value is 1000
reporterBufferSize=10000        # Optional Configuration. Default value is 10000
traceLogConsole = false         # Optional Configuration. Default value is false
traceLogFile = ""               # Optional Configuration. Default value is empty string
traceLogLevel = "info"          # Optional Configuration. Default value is info. Possible values are debug, info, warn, error

Import

import ballerinax/jaeger;Copy

Other versions

See more...

Metadata

Released date: 13 days ago

Version: 1.1.1


Compatibility

Platform: java21

Ballerina version: 2201.12.0

GraalVM compatible: Yes


Pull count

Total: 18089

Current verison: 212


Weekly downloads



Keywords

Type/Driver

Area/Developer Tools

Vendor/Jaeger

Observability

tracing