@ddd-ts-kit/sentry 0.113.1 → 0.114.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:463278a43493852b -->
2
+ <!-- translation-of: README.md sha256:dfecc690f619411f -->
3
3
 
4
4
  # @ddd-ts-kit/sentry
5
5
 
@@ -17,7 +17,7 @@ npm i @ddd-ts-kit/sentry @sentry/node @opentelemetry/api
17
17
  (`enableOpenTelemetrySetup`, `dataCollection`) n'existent pas dans les versions majeures
18
18
  antérieures.
19
19
 
20
- ![La place du rapporteur Sentry : les gestionnaires et les agrégats lèvent des exceptions et ne remontent rien ; cinq points de capture autour d'eux, les bus de commandes et de requêtes, le pipeline HTTP, le planificateur de jobs, DeadLetterReports sur les crochets des fournisseurs d'événements et reportProcessFailures sur le processus, confient un échec inattendu à l'ErrorReporter du noyau, une fois ; la racine de composition y lie le SentryErrorReporter d'initSentry ; l'événement est nettoyé, puis passé au beforeSend du projet, puis envoyé à Sentry ou GlitchTip ; son identifiant de trace mène à la trace dans le backend de traçage](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/sentry-capture-points.fr.svg)
20
+ ![La place du rapporteur Sentry : les gestionnaires et les agrégats lèvent des exceptions et ne remontent rien ; cinq points de capture autour d'eux, les bus de commandes et de requêtes, le pipeline HTTP, le planificateur de jobs, DeadLetterReports sur les crochets des fournisseurs d'événements et reportProcessFailures sur le processus, confient un échec inattendu à l'ErrorReporter du noyau, une fois ; la racine de composition y lie le SentryErrorReporter d'initSentry ; l'événement est nettoyé, puis passé au beforeSend du projet, puis envoyé à Sentry ou GlitchTip ; son identifiant de trace mène à la trace dans le backend de traçage](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/sentry-capture-points.fr.svg)
21
21
 
22
22
  Le code d'un cas d'usage ne voit jamais le rapporteur. Il lève une exception ; ce qui l'entoure
23
23
  décide si l'échec est un incident, le décrit avec les identifiants du travail en cours et le
@@ -106,7 +106,7 @@ fois, par le bus, sous le nom de la commande, et la route qui répond 500 reste
106
106
  rapport dit tout de même d'où il vient : `origin` est l'origine du contexte d'exécution (`http`,
107
107
  `schedule`), et l'identifiant de corrélation et la trace mènent à la requête HTTP.
108
108
 
109
- ![Un échec, un rapport : une requête HTTP atteint la route, qui envoie une commande sur le bus ; le gestionnaire lève une erreur inattendue ; errorReportingMiddleware du bus la remonte sous le nom de la commande et la marque, puis la laisse poursuivre ; la route répond 500 et reportHttpErrors reconnaît l'erreur marquée et reste silencieux ; l'outil de suivi reçoit un seul événement, avec l'origine http, l'identifiant de corrélation et l'identifiant de trace](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/sentry-one-failure-one-report.fr.svg)
109
+ ![Un échec, un rapport : une requête HTTP atteint la route, qui envoie une commande sur le bus ; le gestionnaire lève une erreur inattendue ; errorReportingMiddleware du bus la remonte sous le nom de la commande et la marque, puis la laisse poursuivre ; la route répond 500 et reportHttpErrors reconnaît l'erreur marquée et reste silencieux ; l'outil de suivi reçoit un seul événement, avec l'origine http, l'identifiant de corrélation et l'identifiant de trace](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/sentry-one-failure-one-report.fr.svg)
110
110
 
111
111
  **Événements.** Un consommateur fait l'objet de nouvelles tentatives : ses premiers échecs sont
112
112
  attendus, et les remonter enterrerait les vrais incidents. Le *middleware* du bus ne dit donc
@@ -117,7 +117,7 @@ erreur et sa pile. Sans lui, ou pour un message empoisonné, le rapport est une
117
117
  qui nomme le code. Un événement enterré par une `DomainError` est remonté en `warning` : il est
118
118
  perdu pour son consommateur tout de même.
119
119
 
120
- ![Un événement dont le gestionnaire échoue sans cesse : à chaque tentative, observing retient ce que le gestionnaire a levé et le fournisseur appelle onFailure ; tant que le fournisseur réessaie, onFailure ne remonte rien ; à la dernière tentative, le fournisseur abandonne l'événement, onFailure apprend dead et remonte une fois, avec l'erreur que le gestionnaire a réellement levée, l'origine event et l'opération nommée d'après le type de l'événement et le consommateur](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/sentry-event-given-up.fr.svg)
120
+ ![Un événement dont le gestionnaire échoue sans cesse : à chaque tentative, observing retient ce que le gestionnaire a levé et le fournisseur appelle onFailure ; tant que le fournisseur réessaie, onFailure ne remonte rien ; à la dernière tentative, le fournisseur abandonne l'événement, onFailure apprend dead et remonte une fois, avec l'erreur que le gestionnaire a réellement levée, l'origine event et l'opération nommée d'après le type de l'événement et le consommateur](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/sentry-event-given-up.fr.svg)
121
121
 
122
122
  Les mêmes étapes, jouées à la main contre les doubles du noyau, comme le ferait un test du
123
123
  câblage :
package/README.md CHANGED
@@ -14,7 +14,7 @@ npm i @ddd-ts-kit/sentry @sentry/node @opentelemetry/api
14
14
  Written against `@sentry/node` 11: the options it relies on (`enableOpenTelemetrySetup`,
15
15
  `dataCollection`) do not exist in earlier majors.
16
16
 
17
- ![Where the Sentry reporter sits: handlers and aggregates throw and report nothing; five capture points around them, the command and query buses, the HTTP pipeline, the job scheduler, DeadLetterReports on the hooks of the event providers and reportProcessFailures on the process, hand an unexpected failure to the kernel ErrorReporter, once; the composition root binds the SentryErrorReporter of initSentry to it; the event is scrubbed, then passed to the beforeSend of the project, then sent to Sentry or GlitchTip; its trace id leads to the trace in the tracing backend](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/sentry-capture-points.svg)
17
+ ![Where the Sentry reporter sits: handlers and aggregates throw and report nothing; five capture points around them, the command and query buses, the HTTP pipeline, the job scheduler, DeadLetterReports on the hooks of the event providers and reportProcessFailures on the process, hand an unexpected failure to the kernel ErrorReporter, once; the composition root binds the SentryErrorReporter of initSentry to it; the event is scrubbed, then passed to the beforeSend of the project, then sent to Sentry or GlitchTip; its trace id leads to the trace in the tracing backend](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/sentry-capture-points.svg)
18
18
 
19
19
  The code of a use case never sees the reporter. It throws; what stands around it decides whether
20
20
  the failure is an incident, describes it with the identifiers of the work in progress and hands
@@ -100,7 +100,7 @@ under the name of the command, and the route that answers 500 stays silent. The
100
100
  says where it came from: `origin` is the origin of the execution context (`http`, `schedule`),
101
101
  and the correlation id and the trace lead to the request.
102
102
 
103
- ![One failure, one report: a request reaches the route, which sends a command on the bus; the handler throws an unexpected error; errorReportingMiddleware of the bus reports it under the name of the command and marks it, then lets it go on; the route answers 500 and reportHttpErrors recognises the marked error and stays silent; the tracker receives one event, with origin http, the correlation id and the trace id](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/sentry-one-failure-one-report.svg)
103
+ ![One failure, one report: a request reaches the route, which sends a command on the bus; the handler throws an unexpected error; errorReportingMiddleware of the bus reports it under the name of the command and marks it, then lets it go on; the route answers 500 and reportHttpErrors recognises the marked error and stays silent; the tracker receives one event, with origin http, the correlation id and the trace id](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/sentry-one-failure-one-report.svg)
104
104
 
105
105
  **Events.** A consumer is retried: its first failures are expected, and reporting them would
106
106
  bury the real incidents. The bus middleware therefore says nothing while an event is consumed,
@@ -110,7 +110,7 @@ report carries the real error and its stack. Without it, or for a poison message
110
110
  is a `DeadLetterError` naming the code. An event buried by a `DomainError` is reported as a
111
111
  `warning`: it is lost to its consumer all the same.
112
112
 
113
- ![An event whose handler keeps failing: at each attempt observing remembers what the handler threw and the provider calls onFailure; while the provider retries, onFailure reports nothing; at the last attempt the provider gives the event up, onFailure hears dead and reports once, with the error the handler really threw, origin event and the operation named after the event type and the consumer](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/sentry-event-given-up.svg)
113
+ ![An event whose handler keeps failing: at each attempt observing remembers what the handler threw and the provider calls onFailure; while the provider retries, onFailure reports nothing; at the last attempt the provider gives the event up, onFailure hears dead and reports once, with the error the handler really threw, origin event and the operation named after the event type and the consumer](https://raw.githubusercontent.com/ddd-ts-kit/ddd-ts-kit/main/docs/assets/diagrams/sentry-event-given-up.svg)
114
114
 
115
115
  The same steps, played by hand against the doubles of the kernel, as a test of the wiring would:
116
116
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/sentry",
3
- "version": "0.113.1",
3
+ "version": "0.114.1",
4
4
  "description": "Error reporting to Sentry or GlitchTip behind the kernel ErrorReporter port: unexpected failures only, correlated with traces, scrubbed before sending.",
5
5
  "keywords": [
6
6
  "ddd",
@@ -16,11 +16,11 @@
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "git+https://github.com/gbourgeat/ddd-ts-kit.git",
19
+ "url": "git+https://github.com/ddd-ts-kit/ddd-ts-kit.git",
20
20
  "directory": "packages/sentry"
21
21
  },
22
- "homepage": "https://gbourgeat.github.io/ddd-ts-kit/packages/sentry/",
23
- "bugs": "https://github.com/gbourgeat/ddd-ts-kit/issues",
22
+ "homepage": "https://ddd-ts-kit.github.io/ddd-ts-kit/packages/sentry/",
23
+ "bugs": "https://github.com/ddd-ts-kit/ddd-ts-kit/issues",
24
24
  "publishConfig": {
25
25
  "access": "public",
26
26
  "provenance": true
@@ -40,12 +40,12 @@
40
40
  "dist"
41
41
  ],
42
42
  "dependencies": {
43
- "@ddd-ts-kit/kernel": "0.113.1"
43
+ "@ddd-ts-kit/kernel": "0.114.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@ddd-ts-kit/di": "0.113.1",
47
- "@ddd-ts-kit/http": "0.113.1",
48
- "@ddd-ts-kit/tracing": "0.113.1",
46
+ "@ddd-ts-kit/di": "0.114.1",
47
+ "@ddd-ts-kit/http": "0.114.1",
48
+ "@ddd-ts-kit/tracing": "0.114.1",
49
49
  "@opentelemetry/api": "^1.10.0",
50
50
  "@opentelemetry/sdk-trace": "^3.1.0",
51
51
  "@sentry/node": "^11.11.0"