Binding BusinessWorks Application to OpenTelemetry on Cloud Foundry
You can enable open tracing on cloud foundry using environment variable.
Before you begin
Ensure the OpenTelemetry agent is running.
- Procedure
- Create a
manifest.ymlin the same directory where the application EAR file is exported. - Add environment variables for
BW_JAVA_OPTSinmanifest.ymlfile. The following is a sample of the manifest file:applications: -name: Httpapp memory: 1024M path: httpgreetings.application.ear timeout: 60 buildpack: opentelemetry env: BW_LOGLEVEL: ERROR BW_PROFILE: default BW_JAVA_OPTS: "-Dbw.engine.opentelemetry.enable=true" BW_JAVA_OPTS: "-Dbw.engine.opentelemetry.span.exporter.endpoint=http://192.168.225.224:4317"
- In cf CLI, execute the command
cf pushto deploy the application on the Cloud Foundry. - After the application is deployed successfully, it is registered under
<services>in JAEGER UI.