Re: OpenTelemetry: SpanId and TraceId in logs missing Camel LTS

2025-02-06 Thread Mikael Koskinen
Hi, Thank you for your additional help. Unfortunately I just couldn't make it work. If you at some point decide to remove camel.main.useMdcLogging, I hope you create a camel-main example which shows how to get this working :) In the end I modified the otel-collector to use a processor to transfor

Re: OpenTelemetry: SpanId and TraceId in logs missing Camel LTS

2025-02-06 Thread Pasquale Congiusti
Hello, if you're running the component with camel-main runtime, then, the things are a bit trickier. Please, have a look at the section about how to enable opentelemetry in camel main documentation [1]. You can notice that there is an additional dependency you need to provide and also some flag to

Re: OpenTelemetry: SpanId and TraceId in logs missing Camel LTS

2025-02-05 Thread Mikael Koskinen
Hi Pasquale, Thank you for the quick response and sorry for missing the earlier discussion. I read through the documentation you linked and unfortunately had no luck setting this up. I'll try again but if someone has the time and energy to point out where I'm missing a step, it is appreciated: a

Re: OpenTelemetry: SpanId and TraceId in logs missing Camel LTS

2025-02-05 Thread Pasquale Congiusti
Hi Mikael, we discussed about it some times ago in the dev mailing list. The feature is deprecated as it is not working correctly due to the specific way each telemetry is implemented [1]. However you can always use the specific opentelemetry way to do that [2]. Cheers, Pasquale. [1] https://came

OpenTelemetry: SpanId and TraceId in logs missing Camel LTS

2025-02-05 Thread Mikael Koskinen
Hi, Enabling OpenTelemetry in Camel Main is straightforward, thanks to the good documentation on Camel JBang's page. I get telemetry, metrics and logs moving. But I have a problem with the logs that the OTEL Collector receives. The logs are missing trace and span ids. I have enabled mdc logging i