DataDog / datadogpy

The Datadog Python library
https://datadoghq.com/
Other
605 stars 303 forks source link

Improve forking support #804

Closed vickenty closed 6 months ago

vickenty commented 6 months ago

What does this PR do?

Use register_at_fork added in Python 3.7+ to transparently handle process fork when the client is using background threads.

Description of the Change

Forking support is introduced in several layers:

This approach is similar to one used in dd-trace-py for handling forks.

Alternate Designs

Possible Drawbacks

Verification Process

Additional Notes

Release Notes

Review checklist (to be filled by reviewers)