_Originally posted by @codeboten in https://github.com/open-telemetry/opentelemetry-python/pull/1887#discussion_r710558412_ [This](https://gist.github.com/mRcfps/0af4f1cb29ffe27cf3aa05d542ac742a) may help.