You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if you run the app with uwsgi process forking and use the tracer before the fork, we'll leak traces.
to repro here's a small flask app:
# use tracing right away
from ddtrace import tracer
# start a dummy trace here to ensure we start tracing
# before we fork.
with tracer.trace("aaaa"): pass
app = Flask(__name__)
traced_app = TraceMiddleware(app, tracer, service="foo")
@app.route('/')
def foo():
return 'hello'
if you run the app with uwsgi process forking and use the tracer before the fork, we'll leak traces.
to repro here's a small flask app:
and run with:
uwsgi -p 4 --http :9090 --manage-script-name --mount /=path:app --enable-threads
or
workaround: run with
--lazy-apps
The text was updated successfully, but these errors were encountered: