[New Feature]: Providing support for observability, service catalog, runtime monitoring in Ballerina.toml #43045
Labels
Area/ProjectAPI
Team/DevTools
Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs )
Type/NewFeature
Description
Observability
Need a way to import observability modules to a package. Although this can be done by asking the user to add a null import, this will introduce a build time feature to the source. Furthermore, a way to request the runtime to collect observability meta data is required. The
observabilityIncluded
compiler option currently does this.service catalog
The requirement is to publish services in a package into the APIM service catalog/ ICP. Here also, the required dependency (eg:-
wso2.apim.catalog
) should be included as a dependency. The current design requires the users to add a null import and add an entry to the Ballerina.tomlDescribe your problem(s)
There is no extensible way for the developers to specify such imports/ metadata required for these features without introducing new fields to the Ballerina.toml (and PackageManifest) by changing the ballerina-lang.
Describe your solution(s)
Suggested designs
Suggested by @NipunaMadhushan.
End user ballerina.toml
In the Ballerina.toml of the newrelic module, the observability package developer must specify that the runtime of the user project should start collecting information for observability.
Newrelic package Ballerina.toml
features.dependency
array, the user should add a null import.End user's main.bal
In the Ballerina.toml of the newrelic
2, 3 Suggested by @manuranga
Design documents
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: