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