arvo-event-handler 1.0.0 → 1.0.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.
|
@@ -70,6 +70,7 @@ export default class ArvoEventHandler<TContract extends ArvoContract> {
|
|
|
70
70
|
* @throws All error throw during the execution are returned as a system error event
|
|
71
71
|
*
|
|
72
72
|
* **Routing**
|
|
73
|
+
*
|
|
73
74
|
* The routing of the resulting events is determined as follows:
|
|
74
75
|
* - The `to` field of the output event is set in this priority:
|
|
75
76
|
* 1. The `to` field provided by the handler result
|
|
@@ -78,6 +79,7 @@ export default class ArvoEventHandler<TContract extends ArvoContract> {
|
|
|
78
79
|
* - For system error events, the `to` field is always set to the `source` of the input event.
|
|
79
80
|
*
|
|
80
81
|
* **Telemetry**
|
|
82
|
+
*
|
|
81
83
|
* - Creates a new span for each execution as per the traceparent and tracestate field
|
|
82
84
|
* of the event. If those are not present, then a brand new span is created and distributed
|
|
83
85
|
* tracing is disabled
|
|
@@ -136,6 +136,7 @@ var ArvoEventHandler = /** @class */ (function () {
|
|
|
136
136
|
* @throws All error throw during the execution are returned as a system error event
|
|
137
137
|
*
|
|
138
138
|
* **Routing**
|
|
139
|
+
*
|
|
139
140
|
* The routing of the resulting events is determined as follows:
|
|
140
141
|
* - The `to` field of the output event is set in this priority:
|
|
141
142
|
* 1. The `to` field provided by the handler result
|
|
@@ -144,6 +145,7 @@ var ArvoEventHandler = /** @class */ (function () {
|
|
|
144
145
|
* - For system error events, the `to` field is always set to the `source` of the input event.
|
|
145
146
|
*
|
|
146
147
|
* **Telemetry**
|
|
148
|
+
*
|
|
147
149
|
* - Creates a new span for each execution as per the traceparent and tracestate field
|
|
148
150
|
* of the event. If those are not present, then a brand new span is created and distributed
|
|
149
151
|
* tracing is disabled
|
|
@@ -60,13 +60,16 @@ export default class MultiArvoEventHandler {
|
|
|
60
60
|
* @throws All errors thrown during the execution are returned as a system error event
|
|
61
61
|
*
|
|
62
62
|
* **Routing**
|
|
63
|
+
*
|
|
63
64
|
* The routing of the resulting events is determined as follows:
|
|
64
65
|
* - The `to` field of the output event is set in this priority:
|
|
65
66
|
* 1. The `to` field provided by the handler result
|
|
66
|
-
* 2. The `
|
|
67
|
+
* 2. The `redirectto` field from the input event
|
|
68
|
+
* 3. The `source` field from the input event (as a form of reply)
|
|
67
69
|
* - For system error events, the `to` field is always set to the `source` of the input event.
|
|
68
70
|
*
|
|
69
71
|
* **Telemetry**
|
|
72
|
+
*
|
|
70
73
|
* - Creates a new span for each execution as per the traceparent and tracestate field
|
|
71
74
|
* of the event. If those are not present, then a brand new span is created and distributed
|
|
72
75
|
* tracing is disabled
|
|
@@ -125,13 +125,16 @@ var MultiArvoEventHandler = /** @class */ (function () {
|
|
|
125
125
|
* @throws All errors thrown during the execution are returned as a system error event
|
|
126
126
|
*
|
|
127
127
|
* **Routing**
|
|
128
|
+
*
|
|
128
129
|
* The routing of the resulting events is determined as follows:
|
|
129
130
|
* - The `to` field of the output event is set in this priority:
|
|
130
131
|
* 1. The `to` field provided by the handler result
|
|
131
|
-
* 2. The `
|
|
132
|
+
* 2. The `redirectto` field from the input event
|
|
133
|
+
* 3. The `source` field from the input event (as a form of reply)
|
|
132
134
|
* - For system error events, the `to` field is always set to the `source` of the input event.
|
|
133
135
|
*
|
|
134
136
|
* **Telemetry**
|
|
137
|
+
*
|
|
135
138
|
* - Creates a new span for each execution as per the traceparent and tracestate field
|
|
136
139
|
* of the event. If those are not present, then a brand new span is created and distributed
|
|
137
140
|
* tracing is disabled
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arvo-event-handler",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "This package contains class and function for event handlers in an Arvo Event Driven system",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -42,13 +42,14 @@
|
|
|
42
42
|
"ts-jest": "^29.2.5",
|
|
43
43
|
"ts-node": "^10.9.2",
|
|
44
44
|
"typedoc": "^0.26.6",
|
|
45
|
+
"typedoc-github-theme": "^0.1.2",
|
|
45
46
|
"typedoc-plugin-mermaid": "^1.12.0",
|
|
46
47
|
"typedoc-plugin-zod": "^1.2.1",
|
|
47
48
|
"typescript": "^5.5.4"
|
|
48
49
|
},
|
|
49
50
|
"dependencies": {
|
|
50
51
|
"@opentelemetry/api": "^1.9.0",
|
|
51
|
-
"arvo-core": "^1.0.
|
|
52
|
+
"arvo-core": "^1.0.30",
|
|
52
53
|
"uuid": "^10.0.0",
|
|
53
54
|
"zod": "^3.23.8"
|
|
54
55
|
}
|