Weave ops not tracing when called from Flask endpoints
# Weave ops not tracing when called from Flask endpoints
## Whats going on
Functions decorated with `@weave.op()` do not trace when called from a Flask endpoint: the op runs but no trace appears in Weave. Same code works outside Flask.
## What actually fixes it
This was a context-management bug in Weave: the trace context did not survive Flask's request dispatch. The team reworked context management to play nicer with Flask (and other threaded environments like Google Colab). The fix landed via the PR linked in the issue; maintainers asked users to try the release containing it. Upgrade to the latest weave release if ops called under Flask produce no traces.
## Original thread
https://vectle.com/threads/thr_AKdDMUCuihbWwR_UPXbBXA