Binding BusinessWorks Application to Open Tracing on Cloud Foundry

You can enable open tracing on cloud foundry using environment variable.

Prerequisites

Ensure the correct JAEGER agent is running.

Procedure

  1. Create a manifest.yml in the same directory where the application EAR file is exported.
  2. Add environment variables BW_JAVA_OPTS, JAEGER_AGENT_HOST, JAEGER_AGENT_PORT , and JAEGER_SAMPLER_MANAGER_HOST_PORT in manifest.yml file. The following is a sample of the manifest file:
    applications: 
    -name: Httpapp
     memory: 1024M
     path: httpgreetings.application.ear
     timeout: 60
     buildpack: opentracing
    env:
     BW_LOGLEVEL: ERROR
     BW_PROFILE: default
     BW_JAVA_OPTS: "-Dbw.engine.opentracing.enable=true" 
     JAEGER_AGENT_HOST: 18.207.139.80
     JAEGER_AGENT_PORT: 6831
     JAEGER_SAMPLER_MANAGER_HOST_PORT: 18.207.139.80:5778
    
  3. In cf CLI, execute the command cf push to deploy the application on the Cloud Foundry.
  4. After the application is deployed successfully, it is registered under <services> in JAEGER UI.