@encore.dev/sdk 2.0.0-beta.15 → 2.0.0-beta.16

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.
Files changed (235) hide show
  1. package/README.md +111 -101
  2. package/app_meta.ts +56 -54
  3. package/config/config.ts +60 -57
  4. package/config/secrets.ts +45 -52
  5. package/config/value.ts +23 -26
  6. package/cron/mod.ts +28 -29
  7. package/dist/app_meta.d.ts +52 -50
  8. package/dist/app_meta.d.ts.map +1 -1
  9. package/dist/app_meta.js +2 -2
  10. package/dist/app_meta.js.map +1 -1
  11. package/dist/config/config.d.ts +58 -55
  12. package/dist/config/config.d.ts.map +1 -1
  13. package/dist/config/config.js +8 -9
  14. package/dist/config/config.js.map +1 -1
  15. package/dist/config/secrets.d.ts +45 -52
  16. package/dist/config/secrets.d.ts.map +1 -1
  17. package/dist/config/secrets.js +8 -9
  18. package/dist/config/secrets.js.map +1 -1
  19. package/dist/config/value.d.ts +20 -23
  20. package/dist/config/value.d.ts.map +1 -1
  21. package/dist/config/value.js +20 -23
  22. package/dist/config/value.js.map +1 -1
  23. package/dist/cron/mod.d.ts +26 -27
  24. package/dist/cron/mod.d.ts.map +1 -1
  25. package/dist/cron/mod.js +13 -14
  26. package/dist/cron/mod.js.map +1 -1
  27. package/dist/frontends/mod.d.ts +20 -19
  28. package/dist/frontends/mod.d.ts.map +1 -1
  29. package/dist/frontends/mod.js +20 -19
  30. package/dist/frontends/mod.js.map +1 -1
  31. package/dist/gateway/errors.d.ts +28 -30
  32. package/dist/gateway/errors.d.ts.map +1 -1
  33. package/dist/gateway/errors.js +29 -31
  34. package/dist/gateway/errors.js.map +1 -1
  35. package/dist/gateway/match.d.ts +54 -54
  36. package/dist/gateway/match.d.ts.map +1 -1
  37. package/dist/gateway/match.js +56 -56
  38. package/dist/gateway/match.js.map +1 -1
  39. package/dist/gateway/middleware.d.ts +62 -64
  40. package/dist/gateway/middleware.d.ts.map +1 -1
  41. package/dist/gateway/middleware.js +1 -1
  42. package/dist/gateway/middleware.js.map +1 -1
  43. package/dist/gateway/mod.d.ts +64 -67
  44. package/dist/gateway/mod.d.ts.map +1 -1
  45. package/dist/gateway/mod.js +72 -76
  46. package/dist/gateway/mod.js.map +1 -1
  47. package/dist/gateway/request.d.ts +138 -134
  48. package/dist/gateway/request.d.ts.map +1 -1
  49. package/dist/gateway/request.js +117 -108
  50. package/dist/gateway/request.js.map +1 -1
  51. package/dist/gateway/serve.d.ts +29 -34
  52. package/dist/gateway/serve.d.ts.map +1 -1
  53. package/dist/gateway/serve.js +51 -56
  54. package/dist/gateway/serve.js.map +1 -1
  55. package/dist/gateways/mod.d.ts +23 -21
  56. package/dist/gateways/mod.d.ts.map +1 -1
  57. package/dist/gateways/mod.js +25 -23
  58. package/dist/gateways/mod.js.map +1 -1
  59. package/dist/internal/runtime/napi/napi.cjs +1 -1
  60. package/dist/internal/runtime/napi/napi.d.cts +10 -3
  61. package/dist/internal/runtime/shutdown.d.ts +75 -57
  62. package/dist/internal/runtime/shutdown.d.ts.map +1 -1
  63. package/dist/internal/runtime/shutdown.js +88 -84
  64. package/dist/internal/runtime/shutdown.js.map +1 -1
  65. package/dist/log/logger.d.ts +43 -37
  66. package/dist/log/logger.d.ts.map +1 -1
  67. package/dist/log/logger.js +26 -25
  68. package/dist/log/logger.js.map +1 -1
  69. package/dist/metrics/mod.d.ts +133 -114
  70. package/dist/metrics/mod.d.ts.map +1 -1
  71. package/dist/metrics/mod.js +109 -101
  72. package/dist/metrics/mod.js.map +1 -1
  73. package/dist/otel.d.ts +6 -3
  74. package/dist/otel.d.ts.map +1 -1
  75. package/dist/otel.js +6 -3
  76. package/dist/otel.js.map +1 -1
  77. package/dist/pubsub/subscription.d.ts +88 -116
  78. package/dist/pubsub/subscription.d.ts.map +1 -1
  79. package/dist/pubsub/subscription.js +14 -17
  80. package/dist/pubsub/subscription.js.map +1 -1
  81. package/dist/pubsub/topic.d.ts +86 -113
  82. package/dist/pubsub/topic.d.ts.map +1 -1
  83. package/dist/pubsub/topic.js +68 -82
  84. package/dist/pubsub/topic.js.map +1 -1
  85. package/dist/reqctx/mod.d.ts +83 -86
  86. package/dist/reqctx/mod.d.ts.map +1 -1
  87. package/dist/reqctx/mod.js +39 -41
  88. package/dist/reqctx/mod.js.map +1 -1
  89. package/dist/services/index.d.ts +76 -75
  90. package/dist/services/index.d.ts.map +1 -1
  91. package/dist/services/index.js +73 -71
  92. package/dist/services/index.js.map +1 -1
  93. package/dist/shutdown/mod.d.ts +26 -25
  94. package/dist/shutdown/mod.d.ts.map +1 -1
  95. package/dist/shutdown/mod.js +26 -25
  96. package/dist/shutdown/mod.js.map +1 -1
  97. package/dist/storage/clickhouse/database.d.ts +113 -115
  98. package/dist/storage/clickhouse/database.d.ts.map +1 -1
  99. package/dist/storage/clickhouse/database.js +65 -79
  100. package/dist/storage/clickhouse/database.js.map +1 -1
  101. package/dist/storage/clickhouse/errors.d.ts +25 -26
  102. package/dist/storage/clickhouse/errors.d.ts.map +1 -1
  103. package/dist/storage/clickhouse/errors.js +15 -17
  104. package/dist/storage/clickhouse/errors.js.map +1 -1
  105. package/dist/storage/clickhouse/mod.d.ts +10 -10
  106. package/dist/storage/clickhouse/mod.js +10 -10
  107. package/dist/storage/objects/bucket.d.ts +196 -225
  108. package/dist/storage/objects/bucket.d.ts.map +1 -1
  109. package/dist/storage/objects/bucket.js +71 -84
  110. package/dist/storage/objects/bucket.js.map +1 -1
  111. package/dist/storage/objects/error.d.ts +4 -4
  112. package/dist/storage/objects/error.js +4 -4
  113. package/dist/storage/postgres/database.d.ts +124 -149
  114. package/dist/storage/postgres/database.d.ts.map +1 -1
  115. package/dist/storage/postgres/database.js +98 -135
  116. package/dist/storage/postgres/database.js.map +1 -1
  117. package/dist/storage/postgres/errors.d.ts +42 -48
  118. package/dist/storage/postgres/errors.d.ts.map +1 -1
  119. package/dist/storage/postgres/errors.js +44 -51
  120. package/dist/storage/postgres/errors.js.map +1 -1
  121. package/dist/storage/postgres/interval.d.ts +19 -19
  122. package/dist/storage/postgres/interval.d.ts.map +1 -1
  123. package/dist/storage/postgres/interval.js +21 -21
  124. package/dist/storage/postgres/interval.js.map +1 -1
  125. package/dist/storage/redis/bitfield.d.ts +48 -23
  126. package/dist/storage/redis/bitfield.d.ts.map +1 -1
  127. package/dist/storage/redis/bitfield.js +38 -19
  128. package/dist/storage/redis/bitfield.js.map +1 -1
  129. package/dist/storage/redis/command.d.ts +16 -12
  130. package/dist/storage/redis/command.d.ts.map +1 -1
  131. package/dist/storage/redis/command.js +16 -12
  132. package/dist/storage/redis/command.js.map +1 -1
  133. package/dist/storage/redis/commands.d.ts +99 -100
  134. package/dist/storage/redis/commands.d.ts.map +1 -1
  135. package/dist/storage/redis/commands.js +84 -85
  136. package/dist/storage/redis/commands.js.map +1 -1
  137. package/dist/storage/redis/database.d.ts +138 -122
  138. package/dist/storage/redis/database.d.ts.map +1 -1
  139. package/dist/storage/redis/database.js +120 -101
  140. package/dist/storage/redis/database.js.map +1 -1
  141. package/dist/storage/redis/mod.d.ts +52 -48
  142. package/dist/storage/redis/mod.d.ts.map +1 -1
  143. package/dist/storage/redis/mod.js +52 -48
  144. package/dist/storage/redis/mod.js.map +1 -1
  145. package/dist/storage/redis/options.d.ts +26 -24
  146. package/dist/storage/redis/options.d.ts.map +1 -1
  147. package/dist/storage/redis/options.js.map +1 -1
  148. package/dist/storage/redis/pubsub.d.ts +16 -16
  149. package/dist/storage/redis/pubsub.d.ts.map +1 -1
  150. package/dist/storage/redis/pubsub.js +14 -14
  151. package/dist/storage/redis/pubsub.js.map +1 -1
  152. package/dist/storage/redis/reply.d.ts +80 -72
  153. package/dist/storage/redis/reply.d.ts.map +1 -1
  154. package/dist/storage/redis/reply.js +53 -46
  155. package/dist/storage/redis/reply.js.map +1 -1
  156. package/dist/storage/redis/scan.d.ts +4 -4
  157. package/dist/storage/redis/scan.d.ts.map +1 -1
  158. package/dist/storage/redis/scan.js +6 -6
  159. package/dist/storage/redis/scan.js.map +1 -1
  160. package/dist/storage/redis/script.d.ts +28 -21
  161. package/dist/storage/redis/script.d.ts.map +1 -1
  162. package/dist/storage/redis/script.js +29 -22
  163. package/dist/storage/redis/script.js.map +1 -1
  164. package/dist/storage/redis/target.d.ts +17 -1
  165. package/dist/storage/redis/target.d.ts.map +1 -1
  166. package/dist/storage/redis/target.js +30 -1
  167. package/dist/storage/redis/target.js.map +1 -1
  168. package/dist/storage/redis/wire.d.ts +6 -6
  169. package/dist/storage/redis/wire.d.ts.map +1 -1
  170. package/dist/storage/redis/wire.js +6 -6
  171. package/dist/storage/redis/wire.js.map +1 -1
  172. package/dist/testing/mod.d.ts +83 -88
  173. package/dist/testing/mod.d.ts.map +1 -1
  174. package/dist/testing/mod.js +75 -81
  175. package/dist/testing/mod.js.map +1 -1
  176. package/dist/testing/playwright.d.ts +28 -32
  177. package/dist/testing/playwright.d.ts.map +1 -1
  178. package/dist/testing/playwright.js +22 -27
  179. package/dist/testing/playwright.js.map +1 -1
  180. package/dist/testing/puppeteer.d.ts +11 -12
  181. package/dist/testing/puppeteer.d.ts.map +1 -1
  182. package/dist/testing/puppeteer.js +17 -18
  183. package/dist/testing/puppeteer.js.map +1 -1
  184. package/dist/testing/system.d.ts +72 -90
  185. package/dist/testing/system.d.ts.map +1 -1
  186. package/dist/testing/system.js +90 -107
  187. package/dist/testing/system.js.map +1 -1
  188. package/dist/tsconfig.build.tsbuildinfo +1 -1
  189. package/frontends/mod.test.ts +6 -2
  190. package/frontends/mod.ts +20 -19
  191. package/gateway/errors.ts +30 -32
  192. package/gateway/match.ts +61 -57
  193. package/gateway/middleware.ts +62 -64
  194. package/gateway/mod.ts +73 -76
  195. package/gateway/request.ts +143 -140
  196. package/gateway/serve.ts +58 -63
  197. package/gateways/mod.ts +25 -23
  198. package/internal/runtime/napi/napi.cjs +1 -1
  199. package/internal/runtime/napi/napi.d.cts +10 -3
  200. package/internal/runtime/shutdown.ts +113 -101
  201. package/log/logger.test.ts +8 -0
  202. package/log/logger.ts +48 -45
  203. package/metrics/mod.ts +138 -122
  204. package/otel.ts +6 -3
  205. package/package.json +1 -1
  206. package/pubsub/subscription.ts +93 -123
  207. package/pubsub/topic.ts +96 -130
  208. package/reqctx/mod.ts +83 -86
  209. package/services/index.ts +78 -78
  210. package/shutdown/mod.ts +26 -25
  211. package/storage/clickhouse/database.ts +115 -129
  212. package/storage/clickhouse/errors.ts +27 -29
  213. package/storage/clickhouse/mod.ts +10 -10
  214. package/storage/objects/bucket.ts +209 -239
  215. package/storage/objects/error.ts +4 -4
  216. package/storage/postgres/database.ts +131 -164
  217. package/storage/postgres/errors.ts +45 -52
  218. package/storage/postgres/interval.ts +21 -21
  219. package/storage/redis/bitfield.ts +51 -26
  220. package/storage/redis/command.ts +16 -12
  221. package/storage/redis/commands.ts +99 -100
  222. package/storage/redis/database.ts +145 -123
  223. package/storage/redis/mod.ts +52 -48
  224. package/storage/redis/options.ts +26 -24
  225. package/storage/redis/pubsub.ts +14 -14
  226. package/storage/redis/redis.test.ts +17 -2
  227. package/storage/redis/reply.ts +85 -77
  228. package/storage/redis/scan.ts +6 -6
  229. package/storage/redis/script.ts +29 -22
  230. package/storage/redis/target.ts +34 -1
  231. package/storage/redis/wire.ts +8 -8
  232. package/testing/mod.ts +99 -105
  233. package/testing/playwright.ts +32 -37
  234. package/testing/puppeteer.ts +22 -23
  235. package/testing/system.ts +117 -133
@@ -1,10 +1,9 @@
1
1
  /**
2
- * Metrics: counters, up-down counters, histograms and gauges of what an app
3
- * does.
2
+ * Application metrics: counters, up-down counters, histograms, and gauges.
4
3
  *
5
- * A metric is declared at module level and used wherever the thing it
6
- * measures happens. Its JSDoc comment, else its `description` option, is
7
- * its description:
4
+ * Declare metrics at module level and record to them wherever the measured
5
+ * event occurs. A metric's JSDoc comment is used as its description (falling
6
+ * back to the `description` option):
8
7
  *
9
8
  * ```typescript
10
9
  * import { Counter, Histogram } from "@encore.dev/sdk/metrics";
@@ -19,28 +18,25 @@
19
18
  * uploadSize.record(2048);
20
19
  * ```
21
20
  *
22
- * Each is an instrument of the OpenTelemetry Metrics API
23
- * (`@opentelemetry/api`), of the meter `encore`, named as declared, a
24
- * service's own prefixed with its service's name (`orders_placed` of the
25
- * service `shop` is exported as `shop.orders_placed`), created when it is
26
- * first recorded to, recording through Encore's meter provider whatever the
27
- * global one is. Instruments of the API itself made with it
28
- * (`meterProvider().getMeter(…)`) are exported alongside: observable
29
- * instruments are made with it.
30
- *
31
- * A metric's `scope` option says who records to it: by default
32
- * (`"service"`) it belongs to the declaring service, which alone records to
33
- * it; a `"shared"` one is shared between services, each that records to it
34
- * tracked as using it; a `"global"` one is the whole app's, recorded to from
35
- * any code, untracked. It is written as a string literal, for Encore to
36
- * read:
21
+ * Each metric is backed by an OpenTelemetry Metrics API (`@opentelemetry/api`)
22
+ * instrument on the `encore` meter, created lazily on first use and exported
23
+ * through Encore's meter provider regardless of any global provider.
24
+ * Service-scoped metrics are exported with their service name as a prefix
25
+ * (e.g. `orders_placed` in service `shop` is exported as `shop.orders_placed`).
26
+ * Custom OpenTelemetry instruments created via `meterProvider().getMeter(...)`
27
+ * — such as observable instruments — are exported alongside Encore metrics.
28
+ *
29
+ * Use the `scope` option (as a string literal) to control which services can
30
+ * record to a metric:
31
+ * - `"service"` (default): owned by the declaring service alone.
32
+ * - `"shared"`: shared across services, with each recording service tracked.
33
+ * - `"global"`: app-wide and recordable from any code without usage tracking.
37
34
  *
38
35
  * ```typescript
39
36
  * export const signups = new Counter("signups", { scope: "shared" });
40
37
  * ```
41
38
  *
42
- * The `…Group` classes take a label type, whose fields are the attributes of
43
- * what is recorded:
39
+ * Use the `*Group` classes to attach typed labels as metric attributes:
44
40
  *
45
41
  * ```typescript
46
42
  * import { CounterGroup } from "@encore.dev/sdk/metrics";
@@ -55,12 +51,11 @@
55
51
  * requests.with({ method: "GET", status: 200 }).increment();
56
52
  * ```
57
53
  *
58
- * A shared or global metric is declared once in the app, as a shared
59
- * secret is. Other code records to it by importing the declaration, or,
60
- * from another service in another language, binds it by name with
61
- * `named`, which states the declaration's kind and labels and takes its
62
- * scope, unit, description and buckets. A bound metric is exported as
63
- * declared, never prefixed.
54
+ * Like shared secrets, a shared or global metric is declared once in the app.
55
+ * Other services record to it by importing the declaration, or (for example,
56
+ * across languages) by binding it by name with `named(...)`, which inherits the
57
+ * declaration's scope, unit, description, and buckets. Bound metrics are
58
+ * exported as declared without a service prefix:
64
59
  *
65
60
  * ```typescript
66
61
  * import { CounterGroup } from "@encore.dev/sdk/metrics";
@@ -68,8 +63,8 @@
68
63
  * const served = CounterGroup.named<Served>("greetings.served");
69
64
  * ```
70
65
  *
71
- * To hand a metric to other code, pass its `ref()`: it counts as recording
72
- * to it.
66
+ * To pass a metric handle to helper functions or other modules, pass `ref()`
67
+ * (calling `ref()` counts as recording to the metric).
73
68
  *
74
69
  * @module
75
70
  */
@@ -77,166 +72,190 @@ import { meterProvider } from '../internal/runtime/meter.js';
77
72
  import { StringLiteral } from '../internal/utils/constraints.js';
78
73
  export { meterProvider };
79
74
  export type { MeterProvider } from '../internal/otel/meter.js';
80
- /** The options every metric is declared with. */
75
+ /** Common options for declaring a metric. */
81
76
  export interface MetricOptions {
82
- /** Who records to the metric, written as a string literal:
83
- * `"service"`, the default, the declaring service alone, the metric
84
- * exported as `<service>.<name>`; `"shared"`, the services that record to
85
- * it, each tracked as using it; `"global"`, any code, untracked. A shared
86
- * or global metric is exported as declared. */
77
+ /**
78
+ * Controls which services can record to this metric. Must be a string
79
+ * literal:
80
+ * - `"service"` (default): only the declaring service; exported as
81
+ * `<service>.<name>`.
82
+ * - `"shared"`: any service, with each recording service tracked; exported
83
+ * as declared.
84
+ * - `"global"`: any code, untracked; exported as declared.
85
+ */
87
86
  scope?: 'service' | 'shared' | 'global';
88
- /** What the metric measures in, as exported: `"s"`, `"By"`,
89
- * `"{request}"` ([UCUM](https://ucum.org/ucum)). */
87
+ /** Unit of measurement using [UCUM](https://ucum.org/ucum) syntax (e.g. `"s"`, `"By"`, `"{request}"`). */
90
88
  unit?: string;
91
- /** What the metric measures, for one without a JSDoc comment. */
89
+ /** Human-readable description used when the declaration has no JSDoc comment. */
92
90
  description?: string;
93
91
  /**
94
- * Tags that classify the metric, for policies to read: written out as
95
- * string literals, as in `{data: "pci"}`. Keys and values are lowercase
96
- * letters, digits, `_` and `-`, at most 63 characters; a key starts with a
97
- * letter, and not with `encore`, which is reserved. At most 32 tags.
92
+ * Static string-literal tags that classify the metric for policy checks
93
+ * (e.g. `{data: "pci"}`). Keys and values may contain lowercase letters,
94
+ * digits, `_`, and `-`, up to 63 characters. Keys must start with a letter
95
+ * and cannot start with the reserved prefix `encore`. At most 32 tags.
98
96
  */
99
97
  tags?: Record<string, string>;
100
98
  }
101
- /** The options a histogram is declared with. */
99
+ /** Options for declaring a histogram metric. */
102
100
  export interface HistogramOptions extends MetricOptions {
103
- /** The upper bounds of the buckets, increasing: what is recorded is
104
- * counted in the first it is no greater than, or one past the last.
105
- * Without them, the OpenTelemetry defaults. */
101
+ /**
102
+ * Strictly increasing upper bounds for histogram buckets. Each recorded value
103
+ * falls into the first bucket whose bound is greater than or equal to it (or
104
+ * the overflow bucket above the last bound). Uses OpenTelemetry defaults when
105
+ * omitted.
106
+ */
106
107
  buckets?: number[];
107
108
  }
108
- /** A metric group's labels: an interface or type whose fields are strings,
109
- * numbers or booleans. Each field is a label, named as the field in
110
- * snake_case. A number is recorded as an integer, its value floored
111
- * (`Math.floor`): `200.7` is `200`. */
109
+ /**
110
+ * Label type for a metric group: an interface or type whose fields are strings,
111
+ * numbers, or booleans. Field names are converted to `snake_case` attribute
112
+ * keys, and numbers are floored to integers (`Math.floor`, so `200.7` becomes
113
+ * `200`).
114
+ */
112
115
  export type Labels<L> = {
113
116
  [K in keyof L]: string | number | boolean;
114
117
  };
115
- /** A number that only goes up: how many times something happened, or how
116
- * much of something there has been. By default it belongs to the declaring
117
- * service, which alone records to it. */
118
+ /**
119
+ * A monotonically increasing metric for counting occurrences or totals.
120
+ * Scoped to the declaring service by default.
121
+ */
118
122
  export declare class Counter {
119
123
  private readonly inst;
120
124
  private readonly attrs?;
121
- /** Declares the counter `name`. */
125
+ /** Declares a counter named `name`. */
122
126
  constructor(name: string, opts?: MetricOptions);
123
- /** Binds the shared or global counter `name`, declared elsewhere. */
127
+ /** Binds to a shared or global counter declared elsewhere. */
124
128
  static named<N extends string>(name: StringLiteral<N>): Counter;
125
- /** Adds one. */
129
+ /** Increments the counter by 1. */
126
130
  increment(): void;
127
- /** Adds `n`. A counter does not go down: an amount below zero is
128
- * ignored. */
131
+ /** Adds `n` to the counter. Negative values are ignored. */
129
132
  add(n: number): void;
130
- /** The counter itself, to hand to other code. */
133
+ /** Returns this counter handle so it can be passed to other code. */
131
134
  ref(): this;
132
135
  }
133
- /** A number that goes up and down by what is added to it: how many
134
- * requests are in flight, how many jobs are queued. By default it belongs
135
- * to the declaring service, which alone records to it. */
136
+ /**
137
+ * A metric that can increase or decrease by arbitrary deltas, such as
138
+ * in-flight requests or queued jobs. Scoped to the declaring service by
139
+ * default.
140
+ */
136
141
  export declare class UpDownCounter {
137
142
  private readonly inst;
138
143
  private readonly attrs?;
139
- /** Declares the up-down counter `name`. */
144
+ /** Declares an up-down counter named `name`. */
140
145
  constructor(name: string, opts?: MetricOptions);
141
- /** Binds the shared or global up-down counter `name`, declared elsewhere. */
146
+ /** Binds to a shared or global up-down counter declared elsewhere. */
142
147
  static named<N extends string>(name: StringLiteral<N>): UpDownCounter;
143
- /** Adds `n`, which may be below zero. */
148
+ /** Adds `n` (positive or negative) to the counter. */
144
149
  add(n: number): void;
145
- /** Adds one. */
150
+ /** Increments the counter by 1. */
146
151
  increment(): void;
147
- /** Takes away one. */
152
+ /** Decrements the counter by 1. */
148
153
  decrement(): void;
149
- /** The up-down counter itself, to hand to other code. */
154
+ /** Returns this up-down counter handle so it can be passed to other code. */
150
155
  ref(): this;
151
156
  }
152
- /** A number that is what it was last set to: what something is right now.
153
- * By default it belongs to the declaring service, which alone records to
154
- * it. */
157
+ /**
158
+ * A metric that records the latest instantaneous value of something. Scoped to
159
+ * the declaring service by default.
160
+ */
155
161
  export declare class Gauge {
156
162
  private readonly inst;
157
163
  private readonly attrs?;
158
- /** Declares the gauge `name`. */
164
+ /** Declares a gauge named `name`. */
159
165
  constructor(name: string, opts?: MetricOptions);
160
- /** Binds the shared or global gauge `name`, declared elsewhere. */
166
+ /** Binds to a shared or global gauge declared elsewhere. */
161
167
  static named<N extends string>(name: StringLiteral<N>): Gauge;
162
168
  /** Sets the gauge to `value`. */
163
169
  set(value: number): void;
164
- /** The gauge itself, to hand to other code. */
170
+ /** Returns this gauge handle so it can be passed to other code. */
165
171
  ref(): this;
166
172
  }
167
- /** How what is recorded is distributed: how long requests take, how large
168
- * uploads are. By default it belongs to the declaring service, which alone
169
- * records to it. */
173
+ /**
174
+ * A metric that records the distribution of values, such as request latencies
175
+ * or upload sizes. Scoped to the declaring service by default.
176
+ */
170
177
  export declare class Histogram {
171
178
  private readonly inst;
172
179
  private readonly attrs?;
173
- /** Declares the histogram `name`. */
180
+ /** Declares a histogram named `name`. */
174
181
  constructor(name: string, opts?: HistogramOptions);
175
- /** Binds the shared or global histogram `name`, declared elsewhere. */
182
+ /** Binds to a shared or global histogram declared elsewhere. */
176
183
  static named<N extends string>(name: StringLiteral<N>): Histogram;
177
- /** Records `value`. */
184
+ /** Records `value` in the histogram. */
178
185
  record(value: number): void;
179
- /** The histogram itself, to hand to other code. */
186
+ /** Returns this histogram handle so it can be passed to other code. */
180
187
  ref(): this;
181
188
  }
182
- /** A counter for each combination of the labels `L`. By default it
183
- * belongs to the declaring service, which alone records to it. */
189
+ /**
190
+ * A labeled group of {@link Counter} metrics keyed by `L`. Scoped to the
191
+ * declaring service by default.
192
+ */
184
193
  export declare class CounterGroup<L extends Labels<L>> {
185
194
  private readonly inst;
186
- /** Declares the counter group `name`. */
195
+ /** Declares a counter group named `name`. */
187
196
  constructor(name: string, opts?: MetricOptions);
188
- /** Binds the shared or global counter group `name`, declared elsewhere,
189
- * whose labels are `L`. */
197
+ /** Binds to a shared or global counter group declared elsewhere with labels `L`. */
190
198
  static named<L extends Labels<L>>(name: string): CounterGroup<L>;
191
- /** The counter for `labels`. Worth keeping where it is used often:
192
- * making it encodes the labels' attributes. */
199
+ /**
200
+ * Returns a {@link Counter} bound to `labels`. Cache the returned handle on
201
+ * hot paths to avoid re-encoding the label attributes.
202
+ */
193
203
  with(labels: L): Counter;
194
- /** The group itself, to hand to other code. */
204
+ /** Returns this metric group handle so it can be passed to other code. */
195
205
  ref(): this;
196
206
  }
197
- /** An up-down counter for each combination of the labels `L`. By default it
198
- * belongs to the declaring service, which alone records to it. */
207
+ /**
208
+ * A labeled group of {@link UpDownCounter} metrics keyed by `L`. Scoped to the
209
+ * declaring service by default.
210
+ */
199
211
  export declare class UpDownCounterGroup<L extends Labels<L>> {
200
212
  private readonly inst;
201
- /** Declares the up-down counter group `name`. */
213
+ /** Declares an up-down counter group named `name`. */
202
214
  constructor(name: string, opts?: MetricOptions);
203
- /** Binds the shared or global up-down counter group `name`, declared elsewhere,
204
- * whose labels are `L`. */
215
+ /** Binds to a shared or global up-down counter group declared elsewhere with labels `L`. */
205
216
  static named<L extends Labels<L>>(name: string): UpDownCounterGroup<L>;
206
- /** The up-down counter for `labels`. Worth keeping where it is used often:
207
- * making it encodes the labels' attributes. */
217
+ /**
218
+ * Returns an {@link UpDownCounter} bound to `labels`. Cache the returned
219
+ * handle on hot paths to avoid re-encoding the label attributes.
220
+ */
208
221
  with(labels: L): UpDownCounter;
209
- /** The group itself, to hand to other code. */
222
+ /** Returns this metric group handle so it can be passed to other code. */
210
223
  ref(): this;
211
224
  }
212
- /** A gauge for each combination of the labels `L`. By default it
213
- * belongs to the declaring service, which alone records to it. */
225
+ /**
226
+ * A labeled group of {@link Gauge} metrics keyed by `L`. Scoped to the
227
+ * declaring service by default.
228
+ */
214
229
  export declare class GaugeGroup<L extends Labels<L>> {
215
230
  private readonly inst;
216
- /** Declares the gauge group `name`. */
231
+ /** Declares a gauge group named `name`. */
217
232
  constructor(name: string, opts?: MetricOptions);
218
- /** Binds the shared or global gauge group `name`, declared elsewhere,
219
- * whose labels are `L`. */
233
+ /** Binds to a shared or global gauge group declared elsewhere with labels `L`. */
220
234
  static named<L extends Labels<L>>(name: string): GaugeGroup<L>;
221
- /** The gauge for `labels`. Worth keeping where it is used often:
222
- * making it encodes the labels' attributes. */
235
+ /**
236
+ * Returns a {@link Gauge} bound to `labels`. Cache the returned handle on
237
+ * hot paths to avoid re-encoding the label attributes.
238
+ */
223
239
  with(labels: L): Gauge;
224
- /** The group itself, to hand to other code. */
240
+ /** Returns this metric group handle so it can be passed to other code. */
225
241
  ref(): this;
226
242
  }
227
- /** A histogram for each combination of the labels `L`. By default it
228
- * belongs to the declaring service, which alone records to it. */
243
+ /**
244
+ * A labeled group of {@link Histogram} metrics keyed by `L`. Scoped to the
245
+ * declaring service by default.
246
+ */
229
247
  export declare class HistogramGroup<L extends Labels<L>> {
230
248
  private readonly inst;
231
- /** Declares the histogram group `name`. */
249
+ /** Declares a histogram group named `name`. */
232
250
  constructor(name: string, opts?: HistogramOptions);
233
- /** Binds the shared or global histogram group `name`, declared elsewhere,
234
- * whose labels are `L`. */
251
+ /** Binds to a shared or global histogram group declared elsewhere with labels `L`. */
235
252
  static named<L extends Labels<L>>(name: string): HistogramGroup<L>;
236
- /** The histogram for `labels`. Worth keeping where it is used often:
237
- * making it encodes the labels' attributes. */
253
+ /**
254
+ * Returns a {@link Histogram} bound to `labels`. Cache the returned handle
255
+ * on hot paths to avoid re-encoding the label attributes.
256
+ */
238
257
  with(labels: L): Histogram;
239
- /** The group itself, to hand to other code. */
258
+ /** Returns this metric group handle so it can be passed to other code. */
240
259
  ref(): this;
241
260
  }
242
261
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../metrics/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;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