@mondaydotcomorg/z2h-shared-utils 0.4.1 → 0.4.2

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.
@@ -1,8 +1,19 @@
1
- /** BI events tracked in zth-backend-runner, grouped by domain. */
1
+ /**
2
+ * Telemetry names emitted by zth-backend-runner, grouped by domain.
3
+ *
4
+ * Two destinations, distinguished by suffix: `*Metric` names go to Datadog via `metric.*`
5
+ * and may only carry bounded tags; the rest are BI events sent via `trackEvent`.
6
+ */
2
7
  export declare const BackendRunnerEvents: {
3
8
  readonly invoke: {
4
- readonly succeeded: "z2h.backend_invoke.success";
5
- readonly failed: "z2h.backend_invoke.error";
9
+ readonly successMetric: "z2h.backend_invoke.success";
10
+ readonly failureMetric: "z2h.backend_invoke.error";
11
+ readonly biEvent: "z2h_backend_invoke";
12
+ };
13
+ readonly channel: {
14
+ readonly callMetric: "z2h.channel.call";
15
+ readonly durationMetric: "z2h.channel.duration_ms";
16
+ readonly biEvent: "z2h_channel_call";
6
17
  };
7
18
  readonly snowflake: {
8
19
  readonly queryExecuted: "z2h_snowflake_query_executed";
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;CAEf,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;CAEf,CAAC"}
@@ -1,8 +1,19 @@
1
- /** BI events tracked in zth-backend-runner, grouped by domain. */
1
+ /**
2
+ * Telemetry names emitted by zth-backend-runner, grouped by domain.
3
+ *
4
+ * Two destinations, distinguished by suffix: `*Metric` names go to Datadog via `metric.*`
5
+ * and may only carry bounded tags; the rest are BI events sent via `trackEvent`.
6
+ */
2
7
  const BackendRunnerEvents = {
3
8
  invoke: {
4
- succeeded: 'z2h.backend_invoke.success',
5
- failed: 'z2h.backend_invoke.error',
9
+ successMetric: 'z2h.backend_invoke.success',
10
+ failureMetric: 'z2h.backend_invoke.error',
11
+ biEvent: 'z2h_backend_invoke',
12
+ },
13
+ channel: {
14
+ callMetric: 'z2h.channel.call',
15
+ durationMetric: 'z2h.channel.duration_ms',
16
+ biEvent: 'z2h_channel_call',
6
17
  },
7
18
  snowflake: {
8
19
  queryExecuted: 'z2h_snowflake_query_executed',
@@ -1,8 +1,19 @@
1
- /** BI events tracked in zth-backend-runner, grouped by domain. */
1
+ /**
2
+ * Telemetry names emitted by zth-backend-runner, grouped by domain.
3
+ *
4
+ * Two destinations, distinguished by suffix: `*Metric` names go to Datadog via `metric.*`
5
+ * and may only carry bounded tags; the rest are BI events sent via `trackEvent`.
6
+ */
2
7
  export declare const BackendRunnerEvents: {
3
8
  readonly invoke: {
4
- readonly succeeded: "z2h.backend_invoke.success";
5
- readonly failed: "z2h.backend_invoke.error";
9
+ readonly successMetric: "z2h.backend_invoke.success";
10
+ readonly failureMetric: "z2h.backend_invoke.error";
11
+ readonly biEvent: "z2h_backend_invoke";
12
+ };
13
+ readonly channel: {
14
+ readonly callMetric: "z2h.channel.call";
15
+ readonly durationMetric: "z2h.channel.duration_ms";
16
+ readonly biEvent: "z2h_channel_call";
6
17
  };
7
18
  readonly snowflake: {
8
19
  readonly queryExecuted: "z2h_snowflake_query_executed";
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;CAEf,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;CAEf,CAAC"}
@@ -1,10 +1,21 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
- /** BI events tracked in zth-backend-runner, grouped by domain. */
3
+ /**
4
+ * Telemetry names emitted by zth-backend-runner, grouped by domain.
5
+ *
6
+ * Two destinations, distinguished by suffix: `*Metric` names go to Datadog via `metric.*`
7
+ * and may only carry bounded tags; the rest are BI events sent via `trackEvent`.
8
+ */
4
9
  const BackendRunnerEvents = {
5
10
  invoke: {
6
- succeeded: 'z2h.backend_invoke.success',
7
- failed: 'z2h.backend_invoke.error',
11
+ successMetric: 'z2h.backend_invoke.success',
12
+ failureMetric: 'z2h.backend_invoke.error',
13
+ biEvent: 'z2h_backend_invoke',
14
+ },
15
+ channel: {
16
+ callMetric: 'z2h.channel.call',
17
+ durationMetric: 'z2h.channel.duration_ms',
18
+ biEvent: 'z2h_channel_call',
8
19
  },
9
20
  snowflake: {
10
21
  queryExecuted: 'z2h_snowflake_query_executed',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondaydotcomorg/z2h-shared-utils",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -1,8 +1,19 @@
1
- /** BI events tracked in zth-backend-runner, grouped by domain. */
1
+ /**
2
+ * Telemetry names emitted by zth-backend-runner, grouped by domain.
3
+ *
4
+ * Two destinations, distinguished by suffix: `*Metric` names go to Datadog via `metric.*`
5
+ * and may only carry bounded tags; the rest are BI events sent via `trackEvent`.
6
+ */
2
7
  export const BackendRunnerEvents = {
3
8
  invoke: {
4
- succeeded: 'z2h.backend_invoke.success',
5
- failed: 'z2h.backend_invoke.error',
9
+ successMetric: 'z2h.backend_invoke.success',
10
+ failureMetric: 'z2h.backend_invoke.error',
11
+ biEvent: 'z2h_backend_invoke',
12
+ },
13
+ channel: {
14
+ callMetric: 'z2h.channel.call',
15
+ durationMetric: 'z2h.channel.duration_ms',
16
+ biEvent: 'z2h_channel_call',
6
17
  },
7
18
  snowflake: {
8
19
  queryExecuted: 'z2h_snowflake_query_executed',