Commit Graph

617 Commits

Author SHA1 Message Date
Quentin Gliech
b9a40ef13d Sample traces based on the parent (#4514) 2025-05-07 14:53:52 +02:00
Quentin Gliech
ec945aa58b Suppress warning with Jaeger propagator when the header is unset (#4513) 2025-05-07 14:53:40 +02:00
Quentin Gliech
14b0de7d85 Sample traces based on the parent span if available 2025-05-07 10:53:33 +02:00
Quentin Gliech
6449123814 Suppress warning with Jaeger propagator when the header is unset 2025-05-07 10:32:47 +02:00
Doug
096ce6037d Add a configuration for forwarding the login hint to the upstream provider. 2025-05-06 17:50:33 +01:00
Quentin Gliech
73cfc2c6fd syn2mas: allow setting the db name via the database field
This is supported (but deprecated) by psycopg2, which Synapse uses
2025-05-05 09:58:46 +02:00
Quentin Gliech
8bfe2d2092 Allow setting custom names on sessions (#4459) 2025-04-30 15:32:25 +02:00
Quentin Gliech
9cfecaf5db Insert client_name when upserting statically registered clients (#4417) 2025-04-30 11:50:49 +02:00
Quentin Gliech
dec4c03d42 Remove duplicate OTEL meter for the Tokio runtime 2025-04-29 08:38:57 +02:00
Quentin Gliech
60a0285d36 storage: allow setting the human_name when creating compat sessions 2025-04-25 12:55:10 +02:00
Quentin Gliech
305914ee69 Fix the ordering of the middlewares (#4452) 2025-04-24 15:12:51 +02:00
Quentin Gliech
cb7472995d Fix the ordering of the middlewares
This was causing the number of event processors to constantly grow
with each request, making the server use up more memory and CPU over
time.
2025-04-24 14:59:07 +02:00
Quentin Gliech
2a99af6349 perf: avoid unnecessary clones of the log context 2025-04-24 14:19:26 +02:00
Quentin Gliech
b9ae5228e5 Merge branch 'main' into quenting/better-logging 2025-04-23 18:37:30 +02:00
Olivier 'reivilibre
281da18155 Fix cargo doc choking on invalid [DEPRECATED] 'link'
Could have escaped with a backslash but I thought just using round
brackets would be more readable than that.
2025-04-23 16:54:10 +01:00
Quentin Gliech
5fc74f7e3a Merge remote-tracking branch 'origin/main' into quenting/better-logging 2025-04-23 17:28:40 +02:00
Quentin Gliech
599fc85ca5 Make the new migration tool generally available (#4444) 2025-04-23 17:01:19 +02:00
matrixbot
68c351a44a Automatic merge back to main (#4441) 2025-04-23 16:15:06 +02:00
Quentin Gliech
2539220d89 syn2mas: introduce a dry-run mode 2025-04-23 14:42:30 +02:00
Quentin Gliech
6d2e6816ec syn2mas: log progress more often 2025-04-23 14:21:15 +02:00
Quentin Gliech
55f263d017 Allow syn2mas arguments to be specified after the subcommand 2025-04-23 14:18:59 +02:00
Quentin Gliech
2b1703eb2b Add a few missing license headers 2025-04-23 13:46:44 +02:00
Quentin Gliech
ab1c3173d4 syn2mas: drop the experimental flag 2025-04-23 13:39:16 +02:00
Quentin Gliech
10afe9b3c7 Fix starting up when no telemetry config is set 2025-04-23 11:18:28 +02:00
Quentin Gliech
6f281b131a syn2mas: spawn the writer connections in parallel
Also make sure we have a single span for them
2025-04-22 17:57:30 +02:00
Quentin Gliech
f49b8dcc3c Option to generate a MAS config from an existing Synapse config
This is a best-effort conversion, which will warn about unsupported options.
2025-04-18 18:27:15 +02:00
Quentin Gliech
d748f18be6 Replace most remaining #[instrument(err)] annotations 2025-04-18 09:59:29 +02:00
Quentin Gliech
af9dd97599 Fix Sentry creating transactions for every request 2025-04-18 09:59:24 +02:00
Quentin Gliech
6fbb072075 Exclude the HTTP server response events from Sentry 2025-04-18 09:59:18 +02:00
Quentin Gliech
78ccdf7db2 Log on every HTTP response 2025-04-18 09:58:57 +02:00
Quentin Gliech
2b4eaf55b0 Add context to some log messages 2025-04-18 09:58:48 +02:00
Quentin Gliech
4820b75157 Roll our own event formatter 2025-04-18 09:58:47 +02:00
Quentin Gliech
bfc92f5f28 Create a few basic logging contexts 2025-04-16 16:07:29 +02:00
Adis Veletanlic
d56ecf4d49 Merge branch 'main' into feat/upsert-static-reg-client-name 2025-04-16 11:50:58 +02:00
Adis Veletanlic
8bf25b9d20 Add client_name to static registrations function and generate new query data 2025-04-16 11:44:58 +02:00
Adis Veletanlic
41b460b672 Format project with nightly toolchain 2025-04-16 10:11:02 +02:00
Adis Veletanlic
351c1e7654 Format project 2025-04-14 18:52:41 +02:00
Adis Veletanlic
512208f7ba Add comment to explain sync workflow 2025-04-14 18:44:18 +02:00
Adis Veletanlic
43273d2129 Populate private key for SIWA in sync.rs so it is simply storing private_key in db using the provided file (if given) 2025-04-14 18:25:28 +02:00
dependabot[bot]
521aff9134 build(deps): bump vergen-gitcl from 1.0.7 to 1.0.8
Bumps [vergen-gitcl](https://github.com/rustyhorde/vergen) from 1.0.7 to 1.0.8.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/vergen_git2_1.0.7...vergen_gix_1.0.8)

---
updated-dependencies:
- dependency-name: vergen-gitcl
  dependency-version: 1.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-11 13:26:03 +00:00
mcalinghee
f2a47f9a88 add login by email + feature flag 2025-04-10 17:57:58 +02:00
dependabot[bot]
06e72cabe8 build(deps): bump vergen-gitcl from 1.0.5 to 1.0.7
Bumps [vergen-gitcl](https://github.com/rustyhorde/vergen) from 1.0.5 to 1.0.7.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/commits/vergen_git2_1.0.7)

---
updated-dependencies:
- dependency-name: vergen-gitcl
  dependency-version: 1.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-10 10:19:21 +00:00
Quentin Gliech
7a11f21bf1 Support database poolers: clean up LISTEN/NOTIFY state when opening a connection
This should resolve the following issue:

  encountered unexpected or invalid data: execute: unexpected message: NotificationResponse (sqlx_postgres::connection::executor:361)
2025-04-08 13:24:55 +02:00
Quentin Gliech
12b316198e Expose more Sentry configuration (#4352) 2025-04-07 08:50:27 +02:00
Quentin Gliech
e776d652d9 Fix Clippy lints introduced by Rust 1.86 2025-04-06 16:18:27 +02:00
Quentin Gliech
799f80e6ad Upgrade OpenTelemetry to 0.29.0 2025-04-06 10:33:01 +02:00
Quentin Gliech
eb0cb941c0 Check that sample rates are in range in the config 2025-04-05 23:20:08 +02:00
Quentin Gliech
5bcc1ec011 Allow setting the OTLP tracing sample rate 2025-04-05 23:19:50 +02:00
Quentin Gliech
bb34e9a6b5 Allow setting the Sentry environment & sample rates
Also record the version in the Sentry release field.
2025-04-05 23:19:16 +02:00
Quentin Gliech
f300eca3ee syn2mas: Track skipped entities in the syn2mas progress (#4225) 2025-03-28 14:58:58 +01:00