Reputation: 21
There are just some documented parameters to configure Observability. In OpenTelemetry there are other parameters that can be set. For example, deployment.environment (https://opentelemetry.io/docs/specs/semconv/resource/deployment-environment/) This is one of the parameters I would like to configure. Ballerina allows us to set them?
I would like to set additional opentelemetry options from the observability configurations on Ballerina. I set the options documented on this link https://ballerina.io/learn/observe-tracing/
Upvotes: 1
Views: 69
Reputation: 58
Thank you for mentioning the above use case. Currently we have a workaround to add a suffix to the service name as follows.
$ BAL_OBSERVE_SERVICE_NAME_SUFFIX=<suffix> bal run
As you mentioned about the configurations about Ballerina tracing, they are configured for tracing only. Configurations such as deployment environment will be configured for both tracing and metrics.
We have created an issue for this in the github. We will address this issue immediately and will try to include an improvement soon.
Upvotes: 0