JAEGER_REPORTER_FLUSH_INTERVAL

85 views
Skip to first unread message

elu...@gmail.com

unread,
Mar 11, 2021, 10:56:16 AM3/11/21
to Jaeger Tracing
Hi,
I want to be able to buffer some spans after a client is started while waiting for the agents (daemonset) to be installed.
I'm trying to use the JAEGER_REPORTER_FLUSH_INTERVAL environment variable to change the flush interval from default 1s to a higher value e.g. 1m. However whatever value I set flushing is still done at the default 1s interval.
The jaegercfg.FromEnv() is used at initialization and I have verified that it works by testing with other environment variables.
Why is this not working?

elu...@gmail.com

unread,
Mar 15, 2021, 10:32:32 AM3/15/21
to Jaeger Tracing
Hi

I have been able to change the flush interval using direct setting. It seems to be something wrong with the environment handling in Jaeger for this parameter. I have verified that other settings can be done using environment variables. I have for example tested the JAEGER_DISABLED setting and it works fine.

/Lennart

Juraci Paixão Kröhling

unread,
Mar 15, 2021, 11:30:23 AM3/15/21
to jaeger-...@googlegroups.com
Would you be able to open an issue in the Java Client repository? Bonus
points if you can open a PR with the fix.

- Juca.
> --
> You received this message because you are subscribed to the Google
> Groups "Jaeger Tracing" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jaeger-tracin...@googlegroups.com
> <mailto:jaeger-tracin...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jaeger-tracing/a71a3da3-8b31-4d6b-a90c-24c225c8c00fn%40googlegroups.com
> <https://groups.google.com/d/msgid/jaeger-tracing/a71a3da3-8b31-4d6b-a90c-24c225c8c00fn%40googlegroups.com?utm_medium=email&utm_source=footer>.

elu...@gmail.com

unread,
Mar 16, 2021, 4:37:16 AM3/16/21
to Jaeger Tracing
Hi Juca,

I have found this problem when using the Go client. I have not checked if there is a similar problem with the Java client (or any other client).
I have not done any "fix" for this. What I have done is to verify that configuration using environment variables in general is working by trying a few other variables. I have tested for example JAEGER_DISABLED and that variable is working but JAEGER_REPORTER_FLUSH_INTERVAL is not.
My workaround is to set BufferFlushInterval directly in the ReporterConfig structure when initializing the Jaeger tracer.
I can write a PR if you please can give a link to where PR reporting for the Go client is done.

/Lennart

Juraci Paixão Kröhling

unread,
Mar 16, 2021, 4:47:23 AM3/16/21
to jaeger-...@googlegroups.com

elu...@gmail.com

unread,
Mar 16, 2021, 8:20:08 AM3/16/21
to Jaeger Tracing
Reply all
Reply to author
Forward
0 new messages