Module moesif
ballerinax/moesif Ballerina library
1.0.0
Package Overview
The Moesif Observability Extension is one of the tracing extensions of the Ballerina language.
It provides an implementation for tracing and publishing traces to a Moesif application.
Enabling Moesif Extension
To package the Moesif extension into the Jar, follow the below steps.
- Add the following import to your program.
import ballerinax/moesif 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 Moesif, add the following to the
Config.toml
when running your program.
[ballerina.observe] tracingEnabled=true tracingProvider="moesif" [ballerinax.moesif] applicationId = "xxxxx" # Mandatory configuration. Get the application ID via the Moesif portal reporterBaseUrl = "xxxxx" # Optional Configuration. Default value is https://api.moesif.net
Follow the below steps to get the applicationId
.
- Log into Moesif Portal.
- Select the account icon to bring up the settings menu.
- Select Installation or API Keys.
- Copy your Moesif Application ID from the Collector Application ID field.
Import
import ballerinax/moesif;
Other versions
1.0.0