mirror of https://github.com/watcha-fr/synapse
Tag:
Branch:
Tree:
7ad1d76356
1.103.0-whithout-watcha
code_spécifique_watcha
dependabot/cargo/log-0.4.22
dependabot/cargo/pyo3-0.20.3
dependabot/cargo/regex-1.10.5
dependabot/cargo/serde-1.0.203
dependabot/cargo/serde_json-1.0.119
dependabot/github_actions/actions/download-artifact-4
dependabot/github_actions/actions/upload-artifact-4
dependabot/github_actions/dawidd6/action-download-artifact-3.1.4
dependabot/github_actions/dtolnay/rust-toolchain-1.90.0
dependabot/github_actions/peaceiris/actions-mdbook-2.0.0
dependabot/pip/black-24.4.2
dependabot/pip/pyopenssl-24.1.0
dependabot/pip/ruff-0.5.0
dependabot/pip/twine-5.1.1
dependabot/pip/types-pyopenssl-24.1.0.20240425
feature/create-public-share-link-for-partners
watcha-develop
watcha-lyon-poc
watcha-postgres
watcha-synapse-1.63
v1.103.0
watcha-20220615T155606-8744bec
watcha-20220725T103522-5872653
watcha-20221004T210552-cacf559
watcha-20230516T105835-c98c0fb
watcha-20240528T102955-d92e2cc
watcha-20240614T172257-24baa2e
watcha-20240614T175901-2a6e961
watcha-20240620T111818-dd05b05
watcha-20241016T151951-01924e1
watcha-20241018T114602-58c3d94
watcha-20241018T120039-526886c
watcha-20241018T142133-44f41d8
watcha-20241018T155526-6c49551
watcha-20241021T110133-142020a
watcha-20241021T112738-efc6ace
watcha-20241107T150249-3a569c8
watcha-build-20211216T025348-lyon-poc-95ba3a8
${ noResults }
1 Commits (7ad1d763566eb34bd32234811aa9901d8f3668aa)
Author | SHA1 | Message | Date |
---|---|---|---|
Jorik Schellekens |
38a6d3eea7
|
Add basic opentracing support (#5544)
* Configure and initialise tracer Includes config options for the tracer and sets up JaegerClient. * Scope manager using LogContexts We piggy-back our tracer scopes by using log context. The current log context gives us the current scope. If new scope is created we create a stack of scopes in the context. * jaeger is a dependency now * Carrier inject and extraction for Twisted Headers * Trace federation requests on the way in and out. The span is created in _started_processing and closed in _finished_processing because we need a meaningful log context. * Create logcontext for new scope. Instead of having a stack of scopes in a logcontext we create a new context for a new scope if the current logcontext already has a scope. * Remove scope from logcontext if logcontext is top level * Disable tracer if not configured * typo * Remove dependence on jaeger internals * bools * Set service name * :Explicitely state that the tracer is disabled * Black is the new black * Newsfile * Code style * Use the new config setup. * Generate config. * Copyright * Rename config to opentracing * Remove user whitelisting * Empty whitelist by default * User ConfigError instead of RuntimeError * Use isinstance * Use tag constants for opentracing. * Remove debug comment and no need to explicitely record error * Two errors a "s(c)entry" * Docstrings! * Remove debugging brainslip * Homeserver Whitlisting * Better opentracing config comment * linting * Inclue worker name in service_name * Make opentracing an optional dependency * Neater config retreival * Clean up dummy tags * Instantiate tracing as object instead of global class * Inlcude opentracing as a homeserver member. * Thread opentracing to the request level * Reference opetnracing through hs * Instantiate dummy opentracin g for tests. * About to revert, just keeping the unfinished changes just in case * Revert back to global state, commit number: 9ce4a3d9067bf9889b86c360c05ac88618b85c4f * Use class level methods in tracerutils * Start and stop requests spans in a place where we have access to the authenticated entity * Seen it, isort it * Make sure to close the active span. * I'm getting black and blue from this. * Logger formatting Co-Authored-By: Erik Johnston <erik@matrix.org> * Outdated comment * Import opentracing at the top * Return a contextmanager * Start tracing client requests from the servlet * Return noop context manager if not tracing * Explicitely say that these are federation requests * Include servlet name in client requests * Use context manager * Move opentracing to logging/ * Seen it, isort it again! * Ignore twisted return exceptions on context exit * Escape the scope * Scopes should be entered to make them useful. * Nicer decorator names * Just one init, init? * Don't need to close something that isn't open * Docs make you smarter |
5 years ago |