synapse-product/changelog.d
Richard van der Hoff 31b554c297
Fixes for opentracing scopes (#11869)
`start_active_span` was inconsistent as to whether it would activate the span
immediately, or wait for `scope.__enter__` to happen (it depended on whether
the current logcontext already had an associated scope). The inconsistency was
rather confusing if you were hoping to set up a couple of separate spans before
activating either.

Looking at the other implementations of opentracing `ScopeManager`s, the
intention is that it *should* be activated immediately, as the name
implies. Indeed, the idea is that you don't have to use the scope as a
contextmanager at all - you can just call `.close` on the result. Hence, our
cleanup has to happen in `.close` rather than `.__exit__`.

So, the main change here is to ensure that `start_active_span` does activate
the span, and that `scope.close()` does close the scope.

We also add some tests, which requires a `tracer` param so that we don't have
to rely on the global variable in unit tests.
2022-02-02 22:41:57 +00:00
..
.gitignore
11215.feature Send to-device messages to application services (#11215) 2022-02-01 14:13:38 +00:00
11615.misc Expose the registered device ID from the register_appservice_user test helper. (#11615) 2022-02-02 09:59:55 +00:00
11655.feature Add a background database update to purge account data for deactivated users. (#11655) 2022-02-02 11:37:18 +00:00
11832.misc Fix type errors introduced by new annotations in the Prometheus Client library. (#11832) 2022-02-02 16:51:00 +00:00
11868.feature Allow modules to retrieve server and worker names (#11868) 2022-02-01 16:23:55 +01:00
11869.misc Fixes for opentracing scopes (#11869) 2022-02-02 22:41:57 +00:00
11876.misc Describe prune_unread_entries in docstrings (#11876) 2022-02-02 15:11:23 +00:00
11878.misc Invalidate the get_users_in_room{_with_profile} caches only when necessary. (#11878) 2022-02-02 12:24:07 -05:00
11880.misc Convert ApplicationServiceTestCase to use simple_async_mock (#11880) 2022-02-01 17:45:13 +00:00
11884.misc Revert experimental push rules from #7997. (#11884) 2022-02-02 09:49:31 -05:00
11888.misc Disable coverage calculation for olddeps build. (#11888) 2022-02-02 15:59:33 +00:00
11890.bugfix Fix losing incoming EDUs if debug logging enabled (#11890) 2022-02-02 16:25:17 +00:00