Jan Høydahl

16. jan. 2023 kl. 09:28 skrev DAVID MARTIN NIETO <dmart...@viewnext.com>:


Where is that?
enabling tracing, (header trace-parent)

Thanks.


________________________________
De: Jan Høydahl <jan....@cominvent.com>
Enviado: viernes, 13 de enero de 2023 16:42
Para: users@solr.apache.org <users@solr.apache.org>
Asunto: Re: Logging correlation id

Have you considered enabling tracing, (header trace-parent) and get that Id added to the logs?

Jan Høydahl

13. jan. 2023 kl. 02:42 skrev Shawn Heisey <apa...@elyograg.org>:

On 1/12/23 12:19, Srijan wrote:
I am looking to log additional info to my Solr log. Specifically, I am
looking to log a "correlation-id" provided by my client as part of the HTTP
header field "x-correlation-id" and put that in my log to relate various
client sessions and their actions with Solr. Is there a codeless way of
doing this? Has anyone done something similar?

If you make it a URL parameter instead of a header, Solr will log it automatically.

Arbitrary URL parameters that do not match anything Solr expects tend to be ignored, so it is a good way to log something that doesn't affect Solr.

If it must be a header, then you're going to need to write some custom code as suggesteed by Markus.

Thanks,
Shawn

Reply via email to