Binding BusinessWorks Application to OpenTelemetry on Docker

You can enable open tracing on Docker using an environment variable.

Before you begin

Ensure the OpenTelemetry agent is running.

    Procedure
  1. Create a Dockerfile to deploy the TIBCO BusinessWorks Container Edition application on Docker. For more information about creating the Dockerfile, see "Application Development for Docker" in the TIBCO BusinessWorks Container Edition Application Development.
    FROM tibco/bwce:latest
    MAINTAINER Tibco
    ADD <application name>.ear/
    EXPOSE 8080
    
  2. Run the Docker terminal and navigate to the directory where the EAR and Dockerfile are stored.
  3. Run the following command to build the application image:
    docker build -t <application name> 
  4. In the docker run command, set the environment variables for BW_JAVA_OPTS to enable open tracing.
  5. Run the command in the Docker terminal using Docker machine IP or using link.
    1.  
      docker run -d -p 18050:8080
      -e BW_JAVA_OPTS= "-Dbw.engine.opentelemetry.enable=true -
      Dbw.engine.opentelemetry.span.exporter.endpoint=http://localhost:4317" <application name>