Commit Graph

649 Commits

Author SHA1 Message Date
MTRNord 2d12e5cbc0 Fix tracing causing issues 2023-09-03 11:50:20 +02:00
MTRNord 0add0aa78c Fix repo 2023-09-03 11:37:40 +02:00
MTRNord f890c59974 Remove possibly breaking span 2023-09-03 11:36:53 +02:00
MTRNord 88b4b1e44e Add tracing ids to errors and warnings in the code 2023-09-02 23:36:19 +02:00
MTRNord 1ecd7c0d1f Introduce enums to make sure we dont type the attributes across the code 2023-09-02 23:15:05 +02:00
MTRNord 61e81b21de Cleanup tracer code 2023-09-02 23:03:34 +02:00
MTRNord 9159043872 Fix filter 2023-09-02 22:28:57 +02:00
MTRNord a526fda72b Make sure we use the span 2023-09-02 22:23:55 +02:00
MTRNord e5c50ec362 Fix commands 2023-09-02 22:19:41 +02:00
MTRNord 5a7ac6fa54 Fix filter for healthcheck traces 2023-09-02 21:56:35 +02:00
MTRNord e587279c22 Fix filter for healthcheck traces 2023-09-02 21:51:49 +02:00
MTRNord 76e3ba9180 Add messages when provisioning 2023-09-02 19:34:56 +02:00
MTRNord 96e331b3e9 Update matrix-appservice fork 2023-09-02 18:39:20 +02:00
MTRNord 847e9038b1 Update matrix-appservice fork 2023-09-02 18:34:00 +02:00
MTRNord 0f95a92168 Update matrix-appservice fork 2023-09-02 18:24:13 +02:00
MTRNord e513b00785 Update matrix-appservice fork 2023-09-02 18:16:22 +02:00
MTRNord d410af5e4d Update matrix-appservice fork 2023-09-02 18:11:28 +02:00
MTRNord ce03a84d73 Ensure we install git in the docker 2023-09-02 17:05:00 +02:00
MTRNord 762938a8ba Tracing for the appservice handler 2023-09-02 17:01:06 +02:00
MTRNord 7333232747 Do not preprend constructor name. This seems to mess 2023-09-02 16:24:15 +02:00
MTRNord 748e0a5399 Add missing spread operators 2023-09-02 16:13:58 +02:00
MTRNord df959ad720 Move to async/sync aware ts5 decorators 2023-09-02 16:05:52 +02:00
MTRNord d5e25505a2 Provision draupnirs 2023-09-01 21:33:18 +02:00
MTRNord be1d3b8990 Update matrix-appservice-bridge 2023-09-01 19:19:14 +02:00
MTRNord b36fd2d0fc Small fixes 2023-09-01 19:17:37 +02:00
MTRNord 4bd1990507 Cleanup traces further 2023-09-01 19:15:31 +02:00
MTRNord 8c7661e968 Cleanup traces further 2023-09-01 19:15:29 +02:00
MTRNord 4c4663ceae meow 2023-09-01 19:15:27 +02:00
MTRNord 3c1953dcb6 Disable metrics 2023-09-01 19:15:23 +02:00
MTRNord 77a7a9da45 Try metrics again 2023-09-01 19:14:27 +02:00
MTRNord 4ba1adc1f4 Remove unused import 2023-09-01 19:14:09 +02:00
MTRNord fff8db9fc7 Remove package-lock.json 2023-09-01 19:14:05 +02:00
MTRNord 611856ecdc Reduce trace noise 2023-09-01 19:13:58 +02:00
MTRNord fffd8563e3 Add opentelemetry tracing support
Add logging to tracing

Improve logging

Fix order of imports

Add missing pieces of tracing code

Add more logging

Try nested spans

Expand traces using an decorator

Improve quality of spans

Add missing tracing decorations

Filter metrics and healthz

Add more traces

Fix return type error
2023-09-01 19:13:55 +02:00
MTRNord 40213a0794 startup as draupnir 2023-09-01 19:12:08 +02:00
MTRNord ac2606e39f track instances in prom
track instances in prom

Add disabled state

try to create the metrics earlier

ensure that creating the metrics earlier is safe

Make it a little smarter

Fix typo

Fix typo
2023-09-01 19:12:05 +02:00
MTRNord fa5914bb9a Fix version 2023-09-01 19:12:03 +02:00
MTRNord c2683d61b2 Activate bridge prometheus 2023-09-01 19:12:01 +02:00
MTRNord 35115bb461 Add missing parameter descriptions 2023-09-01 19:11:58 +02:00
MTRNord 732b996c5a Make sure to use a root thingy 2023-09-01 19:11:56 +02:00
MTRNord 4c2a0c59ed Fix order of operations 2023-09-01 19:11:53 +02:00
MTRNord c44f6c591a Try to fix help rendering 2023-09-01 19:11:50 +02:00
MTRNord 3eb48388d5 Add healthz endpoint 2023-09-01 19:11:48 +02:00
MTRNord a0d92dcbc3 Use newer Help interface for appservice help
Fix import crash
2023-09-01 19:11:43 +02:00
Aminda Suomalainen e3925afc3b .editorconfig: fix invalid value s/off/unset/g (#86)
* .editorconfig: s/off/unset/g

This was breaking prettier and neovim as apparently off was invalid value

* .editorconfig: merge the two unset rule blocks
2023-09-01 11:28:29 +01:00
Gnuxie 0a7305b8fa A simple script for testing room membership query. (#81)
https://github.com/Gnuxie/Draupnir/issues/80
2023-08-29 13:56:33 +01:00
Aminda Suomalainen e4c02b96cd Add pre-commit configuration (#34)
* add .pre-commit-config.yaml

Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>

* .editorconfig: decrease indent size for text

* .pre-commit-config.yaml: remove prettier

Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>

* .editorconfig consistency.

* .pre-commit-config.yaml: restore sample hooks

* .editorconfig: disable indent_size for LICENSE & NOTICE

* pre-commit run --all-files

* tsconfig.json: tabs to spaces

* .pre-commit-config.yaml: update editorconfig-checker to 2.7.2

* .editorconfig: disable indent_size for markdown

* mjolnir-entrypoint.sh: retab

* .editorconfig: also exclude json from indent checking

* test/nginx.conf: retab

* test/integration/commands/redactCommandTest.ts: remove leading space

* retab or remove leading whitespaces for the rest of the files

* src/appservice/datastore.ts remove newlines

* test/integration/commands/roomTest.ts: remove leading space.

---------

Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>
Co-authored-by: gnuxie <Gnuxie@protonmail.com>
2023-08-29 13:38:00 +01:00
Gnuxie 56ddbdf96c Failure to ban a single member should not stop other bans being applied. (#79)
Fixes https://github.com/Gnuxie/Draupnir/issues/74.
2023-08-28 16:38:24 +01:00
Catalan Lover 53d79f5ded D4A: Give the requesting user admin in management room at creation. (#73)
The requesting user would previously be unable to manage the room in order to change the room name etc.

Co-authored-by: gnuxie <Gnuxie@protonmail.com>
2023-08-28 12:38:48 +01:00
Marcel 39e2b50c13 Add a missing dash to the docker command in the appservice documentation (#61) 2023-08-22 17:40:37 +01:00