MatrixSynapse/synapse
Richard van der Hoff 60fa4935b5
Improve opentracing for incoming HTTP requests (#11618)
* remove `start_active_span_from_request`

Instead, pull out a separate function, `span_context_from_request`, to extract
the parent span, which we can then pass into `start_active_span` as
normal. This seems to be clearer all round.

* Remove redundant tags from `incoming-federation-request`

These are all wrapped up inside a parent span generated in AsyncResource, so
there's no point duplicating all the tags that are set there.

* Leave request spans open until the request completes

It may take some time for the response to be encoded into JSON, and that JSON
to be streamed back to the client, and really we want that inside the top-level
span, so let's hand responsibility for closure to the SynapseRequest.

* opentracing logs for HTTP request events

* changelog
2021-12-20 17:45:03 +00:00
..
_scripts Add type hints to synapse._scripts (#11297) 2021-11-10 17:55:32 +00:00
api Add experimental support for MSC3202: allowing application services to masquerade as specific devices. (#11538) 2021-12-15 10:40:52 +00:00
app Return JSON errors for unknown resources under /matrix/client. (#11602) 2021-12-20 16:00:13 +00:00
appservice Add missing type hints to `synapse.appservice` (#11360) 2021-12-14 17:02:46 +00:00
config Add MSC2716 and MSC3030 to `/versions` -> `unstable_features` (#11582) 2021-12-16 11:25:37 -06:00
crypto Fix perspectives requests for multiple keys for the same server (#11440) 2021-11-29 13:15:36 +00:00
events Do not allow cross-room relations, per MSC2674. (#11516) 2021-12-09 13:16:01 -05:00
federation Improve opentracing for incoming HTTP requests (#11618) 2021-12-20 17:45:03 +00:00
groups Add type annotations to `synapse.metrics` (#10847) 2021-11-17 19:07:02 +00:00
handlers Add type hints to `synapse/storage/databases/main/room.py` (#11575) 2021-12-15 18:00:48 +00:00
http Improve opentracing for incoming HTTP requests (#11618) 2021-12-20 17:45:03 +00:00
logging Improve opentracing for incoming HTTP requests (#11618) 2021-12-20 17:45:03 +00:00
metrics Add type annotations to `synapse.metrics` (#10847) 2021-11-17 19:07:02 +00:00
module_api Fix `ModuleApi.looping_background_call` for non-async functions (#11524) 2021-12-07 11:41:31 +00:00
push Ensure emails are canonicalized before fetching associated user. (#11547) 2021-12-10 07:17:28 -05:00
replication Type hint the constructors of the data store classes (#11555) 2021-12-13 17:05:00 +00:00
res Allow configuration of the oEmbed URLs. (#10714) 2021-08-31 18:37:07 -04:00
rest Merge remote-tracking branch 'origin/release-v1.49' into develop 2021-12-20 16:34:01 +00:00
server_notices disallow-untyped-defs for synapse.server_notices (#11021) 2021-10-07 19:55:15 +01:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Add type hints to `synapse/storage/databases/main/events_worker.py` (#11411) 2021-11-26 18:41:31 +00:00
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage Add type hints to `synapse/storage/databases/main/transactions.py` (#11589) 2021-12-16 14:59:35 -05:00
streams Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
util Add missing type hints to `synapse.logging.context` (#11556) 2021-12-14 17:35:28 +00:00
__init__.py 1.49.0 2021-12-14 12:56:14 +00:00
event_auth.py Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
notifier.py Convert EventStreamResult to attrs. (#11574) 2021-12-15 11:10:02 -05:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
python_dependencies.py Revert "Move `glob_to_regex` and `re_word_boundary` to `matrix-python-common` (#11505) (#11527) 2021-12-07 13:51:11 +00:00
server.py Add MSC3030 experimental client and federation API endpoints to get the closest event to a given timestamp (#9445) 2021-12-02 01:02:20 -06:00
types.py Add type hints to `synapse/storage/databases/main/e2e_room_keys.py` (#11549) 2021-12-14 17:46:47 +00:00
visibility.py [pyupgrade] `synapse/` (#10348) 2021-07-19 15:28:05 +01:00