fsteccanella commented on issue #4796:
URL: https://github.com/apache/camel-quarkus/issues/4796#issuecomment-1513068290
Hi @jamesnetherton
thanks for the suggestion.
Indeed the "to" component seems to be managed better and allows to trace the
bean execution both in 2.13 and in 2.16.
I have performed some additional tests and these are my findings (if they
can be useful to someone):
```java
from("platform-http:/test")
.bean("telemetryBean","span('http')");
from("timer:timer?period=5000")
.to("bean:telemetryBean?method=span('test')");
//parameters.source was not working for me
```
```java
@ApplicationScoped
@Named("telemetryBean")
public class TelemetryBean {
@WithSpan("manualspan")
public String span(String source) {
internalMethod();
System.out.println(source);
return source;
}
@WithSpan("internalSpan")
private void internalMethod(){
try {
Thread.sleep(500);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
```
Quarkus 2.16
No orphan span

Direct WithSpan method invocation fine, but missing internalMethod details

Quarkus 2.13
Orphan span present and missing WithSpan method invocation

internalMethod details still missing

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]