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:

  1. Add the following import to your program:
Copy
import ballerinax/idetraceprovider 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
  1. To enable the extension and publish traces, add the following to the Config.toml when running your program:
Copy
[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;Copy

Other versions

0.9.0

Metadata

Released date: about 11 hours ago

Version: 0.9.0


Compatibility

Platform: java21

Ballerina version: 2201.12.0

GraalVM compatible: Yes


Pull count

Total: 2

Current verison: 2


Weekly downloads