Hello everyone,
I am reaching out to seek assistance in tracing an instrumented Java application running within a Docker container from the host side.
In my setup, the LTTng session daemon, running on the host side, indicates that application registration has been completed (please refer to the logs). However, when running the command "lttng list --jul," no registered applications are displayed. Although
the application successfully creates the "LttngLogHandler" object and attaches it to the logger, no traces are generated.
To allow the application to access the lttng socket file, the host's /var/run/lttng directory is shared with the container at launch (using the command "sudo docker run -p 8080:8080 -v /var/run/lttng:/var/run/lttng sample-image"). I am only interested in collecting
userspace Java (--jul) traces.
I would greatly appreciate any assistance or guidance that you can provide. Thank you for your time.
Additional details include:
Ubuntu 22.04
Kernel: 5.15.0-60-generic
LTTng session daemon version: 2.13.2
Docker version 20.10.21, build 20.10.21-0ubuntu1~22.04.2
Regards,
Adel Belkhiri