Closed JDUNNIN closed 1 week ago
messages.log Attached messages.log but I think all the key info is above. I've redacted and anonymised a lot of this.
I work for IBM and am happy to have a call to discuss this and available via Slack too.
This issue will be solved under https://github.ibm.com/websphere/WS-CD-Open/issues/32050
Just noting that this issue led to #28891 being opened
Code for this issue has been merged (currently betaguarded, see https://github.com/OpenLiberty/open-liberty/issues/28891)
Describe the bug
Raising this as a bug - but equally could be a configuration problem on my part.
I've been following this guide on Enable distributed tracing with MicroProfile Telemetry, specifically the Manual Instrumentation to attempt to add an OTEL span to my user feature. The user feature is added to Liberty as part of a product extension.
Following the guide I added to one of the classes included in our user feature the recommended code (snippet below). This class already has some injection in use today
Within a manifest feature file that our user extension includes I added the dependency on:
Upon starting the server I get this exception:
The features enabled are:
The scenario in which the class above is used would be client calls a JAX-RS API, this API has an
@Inject
for RequestScoped class MyInjectionClass above and it calls the myMethod() on it, then JAX-RS responds.Steps to Reproduce
Expected behavior
Injection of Tracer class without error.
Diagnostic information:
server.xml configuration Configuration is minimal as most features enabled via manifest files in user extension
$WLP_OUTPUT_DIR/messages.log
Additional context
Add any other context about the problem here.