Module idetraceprovider
ballerinax/idetraceprovider Ballerina library
0.9.0
Package Overview
The IdeTraceProvider Observability Extension is a lightweight tracing extension for the Ballerina language.
It provides a simple HTTP-based implementation for tracing and publishing traces to an OTLP/HTTP compatible trace collector, optimized for IDE and development environments.
Enabling IdeTraceProvider Extension
To package the IdeTraceProvider extension into the Jar, follow these steps:
- Add the following import to your program:
import ballerinax/idetraceprovider as _;
- Add the following to the
Ballerina.tomlwhen 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, add the following to the
Config.tomlwhen running your program:
[ballerina.observe] tracingEnabled=true tracingProvider="idetraceprovider" [ballerinax.idetraceprovider] endpoint="http://localhost:59500/v1/traces" # Optional. Default value is "http://localhost:59500/v1/traces"
Import
import ballerinax/idetraceprovider;Other versions
0.9.0