Export data manually
bigkase opened this issue · comments
Hello, there.
Is there a way in opentelemetry to export traces immediately by calling a function?
In laravel there is a problem when "timeout event" occurred no traces send to jaeger, for after this event code call exit
function and shutdown the script.
And because of this I think It could be a great thing if I'd manually could export data to jaeger.
I've not tested this, but you might try calling forceFlush()
Do you have any more information on why you are facing such timeouts? I am not sure I fully understand what is happening.
@ChrisLightfootWild
Thank you a lot! Now, it's working. I can see traces in jaeger after "timed out" error.
Of course I have info, I simply emulate this. I sat job timeout and then add call of the sleep
method in a job's handle
method with value greater than set timeout.
I wanted to understand what will be going on with traces if I'd got this error.
And laravel inside use signal handler with pcntl_signal
and pcntl_alarm
functions to drop any script after certain timeout.