Open bkempe opened 8 months ago
Thanks for pointing this out, @bkempe. The fix wasn't intended to change any existing functionality. We'll look into it.
@emmettbutler @mabdinur This seems like a rather important issue and appears to have been abandoned?
@bkempe hello! This issue hasn't been abandoned - it's still in our backlog of problems to look into. It's definitely an important issue.
@emmettbutler Pinging again, since it's been ~7 months since the original issue has been reported.
Summary of problem
In-flight spans are not flushed to Datadog on TERM signal. This leaves out critical information, e.g. when a container gets terminated.
Which version of dd-trace-py are you using?
2.5.2
Which version of pip are you using?
23.2.1
How can we reproduce your problem?
test.py
then
What is the result that you get?
No spans are sent to Datadog
What is the result that you expected?
Last span sent to Datadog via flush on TERM signal.
Mostly likely, the problem appeared here: https://github.com/DataDog/dd-trace-py/pull/7578#issuecomment-1919889866 which was a fix for https://github.com/DataDog/dd-trace-py/issues/7273
Therefore, it's unclear whether merely adding
is safe.