@encore.dev/sdk 2.0.0-beta.6 → 2.0.0-beta.8

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 (356) hide show
  1. package/README.md +55 -0
  2. package/app_meta.ts +8 -0
  3. package/config/config.test.ts +10 -3
  4. package/config/config.ts +75 -21
  5. package/config/mod.ts +4 -3
  6. package/config/secrets.ts +72 -55
  7. package/cron/mod.ts +32 -0
  8. package/dist/app_meta.d.ts +7 -0
  9. package/dist/app_meta.d.ts.map +1 -0
  10. package/dist/app_meta.js +1 -0
  11. package/dist/app_meta.js.map +1 -1
  12. package/dist/config/config.d.ts +44 -18
  13. package/dist/config/config.d.ts.map +1 -0
  14. package/dist/config/config.js +43 -18
  15. package/dist/config/config.js.map +1 -1
  16. package/dist/config/mod.d.ts +5 -4
  17. package/dist/config/mod.d.ts.map +1 -0
  18. package/dist/config/mod.js +2 -2
  19. package/dist/config/mod.js.map +1 -1
  20. package/dist/config/secrets.d.ts +62 -39
  21. package/dist/config/secrets.d.ts.map +1 -0
  22. package/dist/config/secrets.js +21 -37
  23. package/dist/config/secrets.js.map +1 -1
  24. package/dist/config/value.d.ts +1 -0
  25. package/dist/config/value.d.ts.map +1 -0
  26. package/dist/cron/mod.d.ts +31 -0
  27. package/dist/cron/mod.d.ts.map +1 -0
  28. package/dist/cron/mod.js +23 -0
  29. package/dist/cron/mod.js.map +1 -1
  30. package/dist/gateway/errors.d.ts +101 -0
  31. package/dist/gateway/errors.d.ts.map +1 -0
  32. package/dist/gateway/errors.js +146 -0
  33. package/dist/gateway/errors.js.map +1 -0
  34. package/dist/gateway/match.d.ts +127 -0
  35. package/dist/gateway/match.d.ts.map +1 -0
  36. package/dist/gateway/match.js +206 -0
  37. package/dist/gateway/match.js.map +1 -0
  38. package/dist/gateway/middleware.d.ts +108 -0
  39. package/dist/gateway/middleware.d.ts.map +1 -0
  40. package/dist/gateway/middleware.js +9 -0
  41. package/dist/gateway/middleware.js.map +1 -0
  42. package/dist/gateway/mod.d.ts +129 -0
  43. package/dist/gateway/mod.d.ts.map +1 -0
  44. package/dist/gateway/mod.js +187 -0
  45. package/dist/gateway/mod.js.map +1 -0
  46. package/dist/gateway/request.d.ts +304 -0
  47. package/dist/gateway/request.d.ts.map +1 -0
  48. package/dist/gateway/request.js +403 -0
  49. package/dist/gateway/request.js.map +1 -0
  50. package/dist/gateway/serve.d.ts +114 -0
  51. package/dist/gateway/serve.d.ts.map +1 -0
  52. package/dist/gateway/serve.js +510 -0
  53. package/dist/gateway/serve.js.map +1 -0
  54. package/dist/internal/clients/call.d.ts +147 -0
  55. package/dist/internal/clients/call.d.ts.map +1 -0
  56. package/dist/internal/clients/call.js +274 -0
  57. package/dist/internal/clients/call.js.map +1 -0
  58. package/dist/internal/clients/grpc.d.ts +90 -0
  59. package/dist/internal/clients/grpc.d.ts.map +1 -0
  60. package/dist/internal/clients/grpc.js +355 -0
  61. package/dist/internal/clients/grpc.js.map +1 -0
  62. package/dist/internal/clients/mod.d.ts +81 -0
  63. package/dist/internal/clients/mod.d.ts.map +1 -0
  64. package/dist/internal/clients/mod.js +237 -0
  65. package/dist/internal/clients/mod.js.map +1 -0
  66. package/dist/internal/fetch.d.ts +54 -0
  67. package/dist/internal/fetch.d.ts.map +1 -0
  68. package/dist/internal/fetch.js +240 -0
  69. package/dist/internal/fetch.js.map +1 -0
  70. package/dist/internal/otel/backend.d.ts +2 -0
  71. package/dist/internal/otel/backend.d.ts.map +1 -0
  72. package/dist/internal/otel/context.d.ts +1 -0
  73. package/dist/internal/otel/context.d.ts.map +1 -0
  74. package/dist/internal/otel/context_manager.d.ts +1 -0
  75. package/dist/internal/otel/context_manager.d.ts.map +1 -0
  76. package/dist/internal/otel/encode.d.ts +2 -0
  77. package/dist/internal/otel/encode.d.ts.map +1 -0
  78. package/dist/internal/otel/index.d.ts +2 -2
  79. package/dist/internal/otel/index.d.ts.map +1 -0
  80. package/dist/internal/otel/index.js +1 -2
  81. package/dist/internal/otel/index.js.map +1 -1
  82. package/dist/internal/otel/meter.d.ts +1 -0
  83. package/dist/internal/otel/meter.d.ts.map +1 -0
  84. package/dist/internal/otel/propagator.d.ts +1 -0
  85. package/dist/internal/otel/propagator.d.ts.map +1 -0
  86. package/dist/internal/otel/provider.d.ts +1 -0
  87. package/dist/internal/otel/provider.d.ts.map +1 -0
  88. package/dist/internal/otel/span.d.ts +4 -0
  89. package/dist/internal/otel/span.d.ts.map +1 -0
  90. package/dist/internal/otel/span.js +5 -0
  91. package/dist/internal/otel/span.js.map +1 -1
  92. package/dist/internal/otel/tracer.d.ts +1 -0
  93. package/dist/internal/otel/tracer.d.ts.map +1 -0
  94. package/dist/internal/otel/tracer.js +11 -5
  95. package/dist/internal/otel/tracer.js.map +1 -1
  96. package/dist/internal/reqfields.d.ts +150 -0
  97. package/dist/internal/reqfields.d.ts.map +1 -0
  98. package/dist/internal/reqfields.js +312 -0
  99. package/dist/internal/reqfields.js.map +1 -0
  100. package/dist/internal/runtime/meter.d.ts +1 -0
  101. package/dist/internal/runtime/meter.d.ts.map +1 -0
  102. package/dist/internal/runtime/mod.d.ts +6 -0
  103. package/dist/internal/runtime/mod.d.ts.map +1 -0
  104. package/dist/internal/runtime/mod.js +32 -2
  105. package/dist/internal/runtime/mod.js.map +1 -1
  106. package/dist/internal/runtime/napi/napi.cjs +160 -16
  107. package/dist/internal/runtime/napi/napi.d.cts +474 -29
  108. package/dist/internal/runtime/shutdown.d.ts +5 -0
  109. package/dist/internal/runtime/shutdown.d.ts.map +1 -0
  110. package/dist/internal/runtime/shutdown.js +9 -1
  111. package/dist/internal/runtime/shutdown.js.map +1 -1
  112. package/dist/internal/testing/runner.d.ts +2 -0
  113. package/dist/internal/testing/runner.d.ts.map +1 -0
  114. package/dist/internal/testing/runner.js +10 -0
  115. package/dist/internal/testing/runner.js.map +1 -0
  116. package/dist/internal/testing/scope.d.ts +81 -0
  117. package/dist/internal/testing/scope.d.ts.map +1 -0
  118. package/dist/internal/testing/scope.js +237 -0
  119. package/dist/internal/testing/scope.js.map +1 -0
  120. package/dist/internal/utils/constraints.d.ts +1 -0
  121. package/dist/internal/utils/constraints.d.ts.map +1 -0
  122. package/dist/log/index.d.ts +1 -0
  123. package/dist/log/index.d.ts.map +1 -0
  124. package/dist/log/logger.d.ts +2 -0
  125. package/dist/log/logger.d.ts.map +1 -0
  126. package/dist/log/runtime.d.ts +2 -0
  127. package/dist/log/runtime.d.ts.map +1 -0
  128. package/dist/log/stderr.d.ts +1 -0
  129. package/dist/log/stderr.d.ts.map +1 -0
  130. package/dist/metrics/mod.d.ts +45 -118
  131. package/dist/metrics/mod.d.ts.map +1 -0
  132. package/dist/metrics/mod.js +44 -179
  133. package/dist/metrics/mod.js.map +1 -1
  134. package/dist/mod.d.ts +1 -2
  135. package/dist/mod.d.ts.map +1 -0
  136. package/dist/mod.js +0 -1
  137. package/dist/mod.js.map +1 -1
  138. package/dist/otel.d.ts +1 -0
  139. package/dist/otel.d.ts.map +1 -0
  140. package/dist/pubsub/encoding.d.ts +5 -0
  141. package/dist/pubsub/encoding.d.ts.map +1 -0
  142. package/dist/pubsub/encoding.js +10 -2
  143. package/dist/pubsub/encoding.js.map +1 -1
  144. package/dist/pubsub/mod.d.ts +4 -3
  145. package/dist/pubsub/mod.d.ts.map +1 -0
  146. package/dist/pubsub/mod.js +2 -2
  147. package/dist/pubsub/mod.js.map +1 -1
  148. package/dist/pubsub/refs.d.ts +8 -0
  149. package/dist/pubsub/refs.d.ts.map +1 -0
  150. package/dist/pubsub/refs.js.map +1 -1
  151. package/dist/pubsub/subscription.d.ts +104 -10
  152. package/dist/pubsub/subscription.d.ts.map +1 -0
  153. package/dist/pubsub/subscription.js +98 -16
  154. package/dist/pubsub/subscription.js.map +1 -1
  155. package/dist/pubsub/topic.d.ts +87 -23
  156. package/dist/pubsub/topic.d.ts.map +1 -0
  157. package/dist/pubsub/topic.js +143 -40
  158. package/dist/pubsub/topic.js.map +1 -1
  159. package/dist/reqctx/mod.d.ts +191 -0
  160. package/dist/reqctx/mod.d.ts.map +1 -0
  161. package/dist/reqctx/mod.js +160 -0
  162. package/dist/reqctx/mod.js.map +1 -0
  163. package/dist/services/index.d.ts +145 -4
  164. package/dist/services/index.d.ts.map +1 -0
  165. package/dist/services/index.js +155 -8
  166. package/dist/services/index.js.map +1 -1
  167. package/dist/shutdown/mod.d.ts +1 -0
  168. package/dist/shutdown/mod.d.ts.map +1 -0
  169. package/dist/storage/objects/bucket.d.ts +312 -7
  170. package/dist/storage/objects/bucket.d.ts.map +1 -0
  171. package/dist/storage/objects/bucket.js +305 -15
  172. package/dist/storage/objects/bucket.js.map +1 -1
  173. package/dist/storage/objects/error.d.ts +10 -0
  174. package/dist/storage/objects/error.d.ts.map +1 -0
  175. package/dist/storage/objects/error.js +25 -1
  176. package/dist/storage/objects/error.js.map +1 -1
  177. package/dist/storage/objects/mod.d.ts +4 -3
  178. package/dist/storage/objects/mod.d.ts.map +1 -0
  179. package/dist/storage/objects/mod.js +1 -1
  180. package/dist/storage/objects/mod.js.map +1 -1
  181. package/dist/storage/objects/refs.d.ts +20 -4
  182. package/dist/storage/objects/refs.d.ts.map +1 -0
  183. package/dist/storage/objects/refs.js +6 -0
  184. package/dist/storage/objects/refs.js.map +1 -1
  185. package/dist/storage/postgres/database.d.ts +81 -25
  186. package/dist/storage/postgres/database.d.ts.map +1 -0
  187. package/dist/storage/postgres/database.js +125 -37
  188. package/dist/storage/postgres/database.js.map +1 -1
  189. package/dist/storage/postgres/errors.d.ts +120 -0
  190. package/dist/storage/postgres/errors.d.ts.map +1 -0
  191. package/dist/storage/postgres/errors.js +162 -0
  192. package/dist/storage/postgres/errors.js.map +1 -0
  193. package/dist/storage/postgres/interval.d.ts +44 -0
  194. package/dist/storage/postgres/interval.d.ts.map +1 -0
  195. package/dist/storage/postgres/interval.js +153 -0
  196. package/dist/storage/postgres/interval.js.map +1 -0
  197. package/dist/storage/postgres/mod.d.ts +4 -1
  198. package/dist/storage/postgres/mod.d.ts.map +1 -0
  199. package/dist/storage/postgres/mod.js +2 -0
  200. package/dist/storage/postgres/mod.js.map +1 -1
  201. package/dist/storage/redis/bitfield.d.ts +67 -0
  202. package/dist/storage/redis/bitfield.d.ts.map +1 -0
  203. package/dist/storage/redis/bitfield.js +114 -0
  204. package/dist/storage/redis/bitfield.js.map +1 -0
  205. package/dist/storage/redis/command.d.ts +45 -0
  206. package/dist/storage/redis/command.d.ts.map +1 -0
  207. package/dist/storage/redis/command.js +78 -0
  208. package/dist/storage/redis/command.js.map +1 -0
  209. package/dist/storage/redis/commands.d.ts +223 -139
  210. package/dist/storage/redis/commands.d.ts.map +1 -0
  211. package/dist/storage/redis/commands.js +128 -6
  212. package/dist/storage/redis/commands.js.map +1 -1
  213. package/dist/storage/redis/database.d.ts +56 -22
  214. package/dist/storage/redis/database.d.ts.map +1 -0
  215. package/dist/storage/redis/database.js +62 -0
  216. package/dist/storage/redis/database.js.map +1 -1
  217. package/dist/storage/redis/mod.d.ts +31 -4
  218. package/dist/storage/redis/mod.d.ts.map +1 -0
  219. package/dist/storage/redis/mod.js +26 -1
  220. package/dist/storage/redis/mod.js.map +1 -1
  221. package/dist/storage/redis/native.d.ts +8 -0
  222. package/dist/storage/redis/native.d.ts.map +1 -0
  223. package/dist/storage/redis/native.js +10 -0
  224. package/dist/storage/redis/native.js.map +1 -1
  225. package/dist/storage/redis/options.d.ts +1 -0
  226. package/dist/storage/redis/options.d.ts.map +1 -0
  227. package/dist/storage/redis/pubsub.d.ts +2 -0
  228. package/dist/storage/redis/pubsub.d.ts.map +1 -0
  229. package/dist/storage/redis/reply.d.ts +34 -0
  230. package/dist/storage/redis/reply.d.ts.map +1 -0
  231. package/dist/storage/redis/reply.js +40 -1
  232. package/dist/storage/redis/reply.js.map +1 -1
  233. package/dist/storage/redis/scan.d.ts +1 -0
  234. package/dist/storage/redis/scan.d.ts.map +1 -0
  235. package/dist/storage/redis/script.d.ts +1 -0
  236. package/dist/storage/redis/script.d.ts.map +1 -0
  237. package/dist/storage/redis/target.d.ts +5 -3
  238. package/dist/storage/redis/target.d.ts.map +1 -0
  239. package/dist/storage/redis/target.js +39 -28
  240. package/dist/storage/redis/target.js.map +1 -1
  241. package/dist/storage/redis/wire.d.ts +7 -10
  242. package/dist/storage/redis/wire.d.ts.map +1 -0
  243. package/dist/storage/redis/wire.js +8 -32
  244. package/dist/storage/redis/wire.js.map +1 -1
  245. package/dist/testing/bun.d.ts +8 -0
  246. package/dist/testing/bun.d.ts.map +1 -0
  247. package/dist/testing/bun.js +13 -0
  248. package/dist/testing/bun.js.map +1 -0
  249. package/dist/testing/jest.d.ts +8 -0
  250. package/dist/testing/jest.d.ts.map +1 -0
  251. package/dist/testing/jest.js +11 -0
  252. package/dist/testing/jest.js.map +1 -0
  253. package/dist/testing/mod.d.ts +160 -0
  254. package/dist/testing/mod.d.ts.map +1 -0
  255. package/dist/testing/mod.js +227 -0
  256. package/dist/testing/mod.js.map +1 -0
  257. package/dist/testing/node.d.ts +9 -0
  258. package/dist/testing/node.d.ts.map +1 -0
  259. package/dist/testing/node.js +12 -0
  260. package/dist/testing/node.js.map +1 -0
  261. package/dist/testing/vitest.d.ts +8 -0
  262. package/dist/testing/vitest.d.ts.map +1 -0
  263. package/dist/testing/vitest.js +13 -0
  264. package/dist/testing/vitest.js.map +1 -0
  265. package/dist/tracing/mod.d.ts +19 -0
  266. package/dist/tracing/mod.d.ts.map +1 -0
  267. package/dist/tracing/mod.js +46 -0
  268. package/dist/tracing/mod.js.map +1 -0
  269. package/dist/tsconfig.build.tsbuildinfo +1 -1
  270. package/dist/types/mod.d.ts +1 -0
  271. package/dist/types/mod.d.ts.map +1 -0
  272. package/gateway/errors.ts +172 -0
  273. package/gateway/gateway.e2e.test.ts +297 -0
  274. package/gateway/gateway.test.ts +891 -0
  275. package/gateway/match.ts +239 -0
  276. package/gateway/middleware.ts +134 -0
  277. package/gateway/mod.ts +210 -0
  278. package/gateway/request.ts +578 -0
  279. package/gateway/serve.ts +738 -0
  280. package/internal/clients/call.ts +389 -0
  281. package/internal/clients/grpc.test.ts +368 -0
  282. package/internal/clients/grpc.ts +485 -0
  283. package/internal/clients/mod.test.ts +464 -0
  284. package/internal/clients/mod.ts +337 -0
  285. package/internal/fetch.ts +276 -0
  286. package/internal/otel/index.ts +1 -7
  287. package/internal/otel/span.ts +6 -0
  288. package/internal/otel/tracer.test.ts +43 -15
  289. package/internal/otel/tracer.ts +12 -5
  290. package/internal/reqfields.ts +390 -0
  291. package/internal/runtime/mod.ts +41 -2
  292. package/internal/runtime/napi/napi.cjs +160 -16
  293. package/internal/runtime/napi/napi.d.cts +474 -29
  294. package/internal/runtime/shutdown.ts +11 -1
  295. package/internal/testing/runner.ts +10 -0
  296. package/internal/testing/scope.ts +273 -0
  297. package/metrics/mod.test.ts +13 -16
  298. package/metrics/mod.ts +57 -226
  299. package/mod.ts +0 -8
  300. package/otel.test.ts +13 -6
  301. package/package.json +67 -15
  302. package/pubsub/encoding.ts +11 -1
  303. package/pubsub/mod.ts +10 -3
  304. package/pubsub/pubsub.test.ts +232 -14
  305. package/pubsub/refs.ts +16 -0
  306. package/pubsub/subscription.ts +194 -16
  307. package/pubsub/topic.test.ts +26 -0
  308. package/pubsub/topic.ts +220 -25
  309. package/reqctx/mod.ts +284 -0
  310. package/reqctx/reqctx.test.ts +193 -0
  311. package/scripts/postprocess-docs.test.ts +48 -0
  312. package/services/index.test.ts +341 -1
  313. package/services/index.ts +183 -8
  314. package/storage/objects/bucket.test.ts +573 -0
  315. package/storage/objects/bucket.ts +649 -20
  316. package/storage/objects/error.ts +28 -1
  317. package/storage/objects/mod.ts +15 -0
  318. package/storage/objects/refs.ts +51 -3
  319. package/storage/postgres/database.integration.test.ts +275 -0
  320. package/storage/postgres/database.test.ts +193 -6
  321. package/storage/postgres/database.ts +202 -55
  322. package/storage/postgres/errors.ts +186 -0
  323. package/storage/postgres/interval.test.ts +72 -0
  324. package/storage/postgres/interval.ts +170 -0
  325. package/storage/postgres/mod.ts +4 -0
  326. package/storage/redis/bitfield.ts +162 -0
  327. package/storage/redis/command.ts +84 -0
  328. package/storage/redis/commands.ts +271 -21
  329. package/storage/redis/database.ts +77 -23
  330. package/storage/redis/mod.ts +38 -2
  331. package/storage/redis/native.ts +11 -0
  332. package/storage/redis/redis.test.ts +170 -10
  333. package/storage/redis/reply.ts +76 -1
  334. package/storage/redis/runtime.test.ts +15 -0
  335. package/storage/redis/target.ts +47 -44
  336. package/storage/redis/wire.ts +8 -32
  337. package/testing/bun.ts +13 -0
  338. package/testing/jest.ts +11 -0
  339. package/testing/mod.ts +337 -0
  340. package/testing/node.ts +12 -0
  341. package/testing/vitest.ts +13 -0
  342. package/tracing/mod.ts +82 -0
  343. package/tracing/native.test.ts +170 -0
  344. package/tracing/tracing.test.ts +317 -0
  345. package/dist/internal/otel/request_context.d.ts +0 -11
  346. package/dist/internal/otel/request_context.js +0 -20
  347. package/dist/internal/otel/request_context.js.map +0 -1
  348. package/dist/internal/reqtrack/mod.d.ts +0 -6
  349. package/dist/internal/reqtrack/mod.js +0 -28
  350. package/dist/internal/reqtrack/mod.js.map +0 -1
  351. package/dist/req_meta.d.ts +0 -47
  352. package/dist/req_meta.js +0 -26
  353. package/dist/req_meta.js.map +0 -1
  354. package/internal/otel/request_context.ts +0 -32
  355. package/internal/reqtrack/mod.ts +0 -39
  356. package/req_meta.ts +0 -75
@@ -28,13 +28,18 @@
28
28
  * (`meterProvider().getMeter(…)`) are exported alongside: observable
29
29
  * instruments are made with it.
30
30
  *
31
- * Which class declares a metric says who records to it: a `Counter`
32
- * belongs to the declaring service, which alone records to it; a
33
- * `SharedCounter` is shared between services, each that records to it
34
- * tracked as using it; a `GlobalCounter` is the whole app's, recorded to
35
- * from any code, untracked. `SharedCounter` and `GlobalCounter` extend
36
- * `Counter`, so code taking a `Counter` takes one of any scope. The
37
- * `…Group` classes take a label type, whose fields are the attributes of
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:
37
+ *
38
+ * ```typescript
39
+ * export const signups = new Counter("signups", { scope: "shared" });
40
+ * ```
41
+ *
42
+ * The `…Group` classes take a label type, whose fields are the attributes of
38
43
  * what is recorded:
39
44
  *
40
45
  * ```typescript
@@ -54,9 +59,8 @@
54
59
  * secret is. Other code records to it by importing the declaration, or,
55
60
  * from another service in another language, binds it by name with
56
61
  * `named`, which states the declaration's kind and labels and takes its
57
- * scope, unit, description and buckets. Every scope's class has it and
58
- * binds alike: `SharedCounter.named` is `Counter.named`. A bound metric is
59
- * exported as declared, never prefixed.
62
+ * scope, unit, description and buckets. A bound metric is exported as
63
+ * declared, never prefixed.
60
64
  *
61
65
  * ```typescript
62
66
  * import { CounterGroup } from "@encore.dev/sdk/metrics";
@@ -75,11 +79,24 @@ export { meterProvider };
75
79
  export type { MeterProvider } from '../internal/otel/meter.js';
76
80
  /** The options every metric is declared with. */
77
81
  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. */
87
+ scope?: 'service' | 'shared' | 'global';
78
88
  /** What the metric measures in, as exported: `"s"`, `"By"`,
79
89
  * `"{request}"` ([UCUM](https://ucum.org/ucum)). */
80
90
  unit?: string;
81
91
  /** What the metric measures, for one without a JSDoc comment. */
82
92
  description?: string;
93
+ /**
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.
98
+ */
99
+ tags?: Record<string, string>;
83
100
  }
84
101
  /** The options a histogram is declared with. */
85
102
  export interface HistogramOptions extends MetricOptions {
@@ -96,7 +113,8 @@ export type Labels<L> = {
96
113
  [K in keyof L]: string | number | boolean;
97
114
  };
98
115
  /** A number that only goes up: how many times something happened, or how
99
- * much of something there has been. Belongs to the declaring service: only it records to it. */
116
+ * much of something there has been. By default it belongs to the declaring
117
+ * service, which alone records to it. */
100
118
  export declare class Counter {
101
119
  private readonly inst;
102
120
  private readonly attrs?;
@@ -112,19 +130,9 @@ export declare class Counter {
112
130
  /** The counter itself, to hand to other code. */
113
131
  ref(): this;
114
132
  }
115
- /** A counter shared between services: each that records to it is tracked as
116
- * using it. */
117
- export declare class SharedCounter extends Counter {
118
- /** Declares the shared counter `name`. */
119
- constructor(name: string, opts?: MetricOptions);
120
- }
121
- /** A counter of the whole app: any code may record to it. */
122
- export declare class GlobalCounter extends Counter {
123
- /** Declares the global counter `name`. */
124
- constructor(name: string, opts?: MetricOptions);
125
- }
126
133
  /** A number that goes up and down by what is added to it: how many
127
- * requests are in flight, how many jobs are queued. Belongs to the declaring service: only it records to it. */
134
+ * requests are in flight, how many jobs are queued. By default it belongs
135
+ * to the declaring service, which alone records to it. */
128
136
  export declare class UpDownCounter {
129
137
  private readonly inst;
130
138
  private readonly attrs?;
@@ -141,18 +149,9 @@ export declare class UpDownCounter {
141
149
  /** The up-down counter itself, to hand to other code. */
142
150
  ref(): this;
143
151
  }
144
- /** An up-down counter shared between services: each that records to it is tracked as
145
- * using it. */
146
- export declare class SharedUpDownCounter extends UpDownCounter {
147
- /** Declares the shared up-down counter `name`. */
148
- constructor(name: string, opts?: MetricOptions);
149
- }
150
- /** An up-down counter of the whole app: any code may record to it. */
151
- export declare class GlobalUpDownCounter extends UpDownCounter {
152
- /** Declares the global up-down counter `name`. */
153
- constructor(name: string, opts?: MetricOptions);
154
- }
155
- /** A number that is what it was last set to: what something is right now. Belongs to the declaring service: only it records to it. */
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. */
156
155
  export declare class Gauge {
157
156
  private readonly inst;
158
157
  private readonly attrs?;
@@ -165,19 +164,9 @@ export declare class Gauge {
165
164
  /** The gauge itself, to hand to other code. */
166
165
  ref(): this;
167
166
  }
168
- /** A gauge shared between services: each that records to it is tracked as
169
- * using it. */
170
- export declare class SharedGauge extends Gauge {
171
- /** Declares the shared gauge `name`. */
172
- constructor(name: string, opts?: MetricOptions);
173
- }
174
- /** A gauge of the whole app: any code may record to it. */
175
- export declare class GlobalGauge extends Gauge {
176
- /** Declares the global gauge `name`. */
177
- constructor(name: string, opts?: MetricOptions);
178
- }
179
167
  /** How what is recorded is distributed: how long requests take, how large
180
- * uploads are. Belongs to the declaring service: only it records to it. */
168
+ * uploads are. By default it belongs to the declaring service, which alone
169
+ * records to it. */
181
170
  export declare class Histogram {
182
171
  private readonly inst;
183
172
  private readonly attrs?;
@@ -190,19 +179,8 @@ export declare class Histogram {
190
179
  /** The histogram itself, to hand to other code. */
191
180
  ref(): this;
192
181
  }
193
- /** A histogram shared between services: each that records to it is tracked as
194
- * using it. */
195
- export declare class SharedHistogram extends Histogram {
196
- /** Declares the shared histogram `name`. */
197
- constructor(name: string, opts?: HistogramOptions);
198
- }
199
- /** A histogram of the whole app: any code may record to it. */
200
- export declare class GlobalHistogram extends Histogram {
201
- /** Declares the global histogram `name`. */
202
- constructor(name: string, opts?: HistogramOptions);
203
- }
204
- /** A counter for each combination of the labels `L`. Belongs to the
205
- * declaring service: only it records to it. */
182
+ /** A counter for each combination of the labels `L`. By default it
183
+ * belongs to the declaring service, which alone records to it. */
206
184
  export declare class CounterGroup<L extends Labels<L>> {
207
185
  private readonly inst;
208
186
  /** Declares the counter group `name`. */
@@ -216,21 +194,8 @@ export declare class CounterGroup<L extends Labels<L>> {
216
194
  /** The group itself, to hand to other code. */
217
195
  ref(): this;
218
196
  }
219
- /** A counter group shared between services: each that records to it is tracked
220
- * as using it. */
221
- export declare class SharedCounterGroup<L extends Labels<L>> extends CounterGroup<L> {
222
- /** Declares the shared counter group `name`. */
223
- constructor(name: string, opts?: MetricOptions);
224
- with(labels: L): SharedCounter;
225
- }
226
- /** A counter group of the whole app: any code may record to it. */
227
- export declare class GlobalCounterGroup<L extends Labels<L>> extends CounterGroup<L> {
228
- /** Declares the global counter group `name`. */
229
- constructor(name: string, opts?: MetricOptions);
230
- with(labels: L): GlobalCounter;
231
- }
232
- /** An up-down counter for each combination of the labels `L`. Belongs to the
233
- * declaring service: only it records to it. */
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. */
234
199
  export declare class UpDownCounterGroup<L extends Labels<L>> {
235
200
  private readonly inst;
236
201
  /** Declares the up-down counter group `name`. */
@@ -244,21 +209,8 @@ export declare class UpDownCounterGroup<L extends Labels<L>> {
244
209
  /** The group itself, to hand to other code. */
245
210
  ref(): this;
246
211
  }
247
- /** An up-down counter group shared between services: each that records to it is tracked
248
- * as using it. */
249
- export declare class SharedUpDownCounterGroup<L extends Labels<L>> extends UpDownCounterGroup<L> {
250
- /** Declares the shared up-down counter group `name`. */
251
- constructor(name: string, opts?: MetricOptions);
252
- with(labels: L): SharedUpDownCounter;
253
- }
254
- /** An up-down counter group of the whole app: any code may record to it. */
255
- export declare class GlobalUpDownCounterGroup<L extends Labels<L>> extends UpDownCounterGroup<L> {
256
- /** Declares the global up-down counter group `name`. */
257
- constructor(name: string, opts?: MetricOptions);
258
- with(labels: L): GlobalUpDownCounter;
259
- }
260
- /** A gauge for each combination of the labels `L`. Belongs to the
261
- * declaring service: only it records to it. */
212
+ /** A gauge for each combination of the labels `L`. By default it
213
+ * belongs to the declaring service, which alone records to it. */
262
214
  export declare class GaugeGroup<L extends Labels<L>> {
263
215
  private readonly inst;
264
216
  /** Declares the gauge group `name`. */
@@ -272,21 +224,8 @@ export declare class GaugeGroup<L extends Labels<L>> {
272
224
  /** The group itself, to hand to other code. */
273
225
  ref(): this;
274
226
  }
275
- /** A gauge group shared between services: each that records to it is tracked
276
- * as using it. */
277
- export declare class SharedGaugeGroup<L extends Labels<L>> extends GaugeGroup<L> {
278
- /** Declares the shared gauge group `name`. */
279
- constructor(name: string, opts?: MetricOptions);
280
- with(labels: L): SharedGauge;
281
- }
282
- /** A gauge group of the whole app: any code may record to it. */
283
- export declare class GlobalGaugeGroup<L extends Labels<L>> extends GaugeGroup<L> {
284
- /** Declares the global gauge group `name`. */
285
- constructor(name: string, opts?: MetricOptions);
286
- with(labels: L): GlobalGauge;
287
- }
288
- /** A histogram for each combination of the labels `L`. Belongs to the
289
- * declaring service: only it records to it. */
227
+ /** A histogram for each combination of the labels `L`. By default it
228
+ * belongs to the declaring service, which alone records to it. */
290
229
  export declare class HistogramGroup<L extends Labels<L>> {
291
230
  private readonly inst;
292
231
  /** Declares the histogram group `name`. */
@@ -300,16 +239,4 @@ export declare class HistogramGroup<L extends Labels<L>> {
300
239
  /** The group itself, to hand to other code. */
301
240
  ref(): this;
302
241
  }
303
- /** A histogram group shared between services: each that records to it is tracked
304
- * as using it. */
305
- export declare class SharedHistogramGroup<L extends Labels<L>> extends HistogramGroup<L> {
306
- /** Declares the shared histogram group `name`. */
307
- constructor(name: string, opts?: HistogramOptions);
308
- with(labels: L): SharedHistogram;
309
- }
310
- /** A histogram group of the whole app: any code may record to it. */
311
- export declare class GlobalHistogramGroup<L extends Labels<L>> extends HistogramGroup<L> {
312
- /** Declares the global histogram group `name`. */
313
- constructor(name: string, opts?: HistogramOptions);
314
- with(labels: L): GlobalHistogram;
315
- }
242
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../metrics/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AAGH,OAAO,EAAuB,aAAa,EAAC,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAC,aAAa,EAAC,MAAM,+BAA+B,CAAC;AAE5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DAC+C;IAC/C,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,KAAK;IAItB,+CAA+C;IAC/C,GAAG,IAAI,IAAI;CAGZ;AAED;kEACkE;AAClE,qBAAa,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,CAAC,CAAC;IAC7C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAO;IAE5B,2CAA2C;gBAC/B,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB;IAIjD;+BAC2B;IAC3B,MAAM,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC;IAIlE;mDAC+C;IAC/C,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,SAAS;IAI1B,+CAA+C;IAC/C,GAAG,IAAI,IAAI;CAGZ"}
@@ -28,13 +28,18 @@
28
28
  * (`meterProvider().getMeter(…)`) are exported alongside: observable
29
29
  * instruments are made with it.
30
30
  *
31
- * Which class declares a metric says who records to it: a `Counter`
32
- * belongs to the declaring service, which alone records to it; a
33
- * `SharedCounter` is shared between services, each that records to it
34
- * tracked as using it; a `GlobalCounter` is the whole app's, recorded to
35
- * from any code, untracked. `SharedCounter` and `GlobalCounter` extend
36
- * `Counter`, so code taking a `Counter` takes one of any scope. The
37
- * `…Group` classes take a label type, whose fields are the attributes of
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:
37
+ *
38
+ * ```typescript
39
+ * export const signups = new Counter("signups", { scope: "shared" });
40
+ * ```
41
+ *
42
+ * The `…Group` classes take a label type, whose fields are the attributes of
38
43
  * what is recorded:
39
44
  *
40
45
  * ```typescript
@@ -54,9 +59,8 @@
54
59
  * secret is. Other code records to it by importing the declaration, or,
55
60
  * from another service in another language, binds it by name with
56
61
  * `named`, which states the declaration's kind and labels and takes its
57
- * scope, unit, description and buckets. Every scope's class has it and
58
- * binds alike: `SharedCounter.named` is `Counter.named`. A bound metric is
59
- * exported as declared, never prefixed.
62
+ * scope, unit, description and buckets. A bound metric is exported as
63
+ * declared, never prefixed.
60
64
  *
61
65
  * ```typescript
62
66
  * import { CounterGroup } from "@encore.dev/sdk/metrics";
@@ -120,9 +124,9 @@ function bind(cls, inst, attrs) {
120
124
  attrs,
121
125
  });
122
126
  }
123
- /** A group's instrument, for a subclass's `with`. */
124
- function lazy(group) {
125
- return group.inst;
127
+ /** Whether a metric declared with `opts` is the declaring service's own. */
128
+ function own(opts) {
129
+ return (opts?.scope ?? 'service') === 'service';
126
130
  }
127
131
  /** `labels` as attributes, a JSON object's text: keys in snake_case,
128
132
  * numbers floored. */
@@ -140,19 +144,20 @@ function snakeCase(s) {
140
144
  .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2')
141
145
  .toLowerCase();
142
146
  }
143
- // Encore reads a metric's scope from the class that declares it. A name is a
144
- // string literal: a letter, then letters, digits, `_`, `.`, `-` and `/`.
147
+ // Encore reads a metric's scope from its `scope` option. A name is a string
148
+ // literal: a letter, then letters, digits, `_`, `.`, `-` and `/`.
145
149
  // `named` binds a shared or global metric declared elsewhere, by another
146
150
  // service, possibly in another language: its kind and labels are the
147
151
  // declaration's, and so are its scope, unit, description and buckets.
148
152
  /** A number that only goes up: how many times something happened, or how
149
- * much of something there has been. Belongs to the declaring service: only it records to it. */
153
+ * much of something there has been. By default it belongs to the declaring
154
+ * service, which alone records to it. */
150
155
  export class Counter {
151
156
  inst;
152
157
  attrs;
153
158
  /** Declares the counter `name`. */
154
159
  constructor(name, opts) {
155
- this.inst = new Lazy('counter', name, opts, new.target === Counter);
160
+ this.inst = new Lazy('counter', name, opts, own(opts));
156
161
  }
157
162
  /** Binds the shared or global counter `name`, declared elsewhere. */
158
163
  static named(name) {
@@ -172,29 +177,15 @@ export class Counter {
172
177
  return this;
173
178
  }
174
179
  }
175
- /** A counter shared between services: each that records to it is tracked as
176
- * using it. */
177
- export class SharedCounter extends Counter {
178
- /** Declares the shared counter `name`. */
179
- constructor(name, opts) {
180
- super(name, opts);
181
- }
182
- }
183
- /** A counter of the whole app: any code may record to it. */
184
- export class GlobalCounter extends Counter {
185
- /** Declares the global counter `name`. */
186
- constructor(name, opts) {
187
- super(name, opts);
188
- }
189
- }
190
180
  /** A number that goes up and down by what is added to it: how many
191
- * requests are in flight, how many jobs are queued. Belongs to the declaring service: only it records to it. */
181
+ * requests are in flight, how many jobs are queued. By default it belongs
182
+ * to the declaring service, which alone records to it. */
192
183
  export class UpDownCounter {
193
184
  inst;
194
185
  attrs;
195
186
  /** Declares the up-down counter `name`. */
196
187
  constructor(name, opts) {
197
- this.inst = new Lazy('upDownCounter', name, opts, new.target === UpDownCounter);
188
+ this.inst = new Lazy('upDownCounter', name, opts, own(opts));
198
189
  }
199
190
  /** Binds the shared or global up-down counter `name`, declared elsewhere. */
200
191
  static named(name) {
@@ -217,28 +208,15 @@ export class UpDownCounter {
217
208
  return this;
218
209
  }
219
210
  }
220
- /** An up-down counter shared between services: each that records to it is tracked as
221
- * using it. */
222
- export class SharedUpDownCounter extends UpDownCounter {
223
- /** Declares the shared up-down counter `name`. */
224
- constructor(name, opts) {
225
- super(name, opts);
226
- }
227
- }
228
- /** An up-down counter of the whole app: any code may record to it. */
229
- export class GlobalUpDownCounter extends UpDownCounter {
230
- /** Declares the global up-down counter `name`. */
231
- constructor(name, opts) {
232
- super(name, opts);
233
- }
234
- }
235
- /** A number that is what it was last set to: what something is right now. Belongs to the declaring service: only it records to it. */
211
+ /** A number that is what it was last set to: what something is right now.
212
+ * By default it belongs to the declaring service, which alone records to
213
+ * it. */
236
214
  export class Gauge {
237
215
  inst;
238
216
  attrs;
239
217
  /** Declares the gauge `name`. */
240
218
  constructor(name, opts) {
241
- this.inst = new Lazy('gauge', name, opts, new.target === Gauge);
219
+ this.inst = new Lazy('gauge', name, opts, own(opts));
242
220
  }
243
221
  /** Binds the shared or global gauge `name`, declared elsewhere. */
244
222
  static named(name) {
@@ -253,29 +231,15 @@ export class Gauge {
253
231
  return this;
254
232
  }
255
233
  }
256
- /** A gauge shared between services: each that records to it is tracked as
257
- * using it. */
258
- export class SharedGauge extends Gauge {
259
- /** Declares the shared gauge `name`. */
260
- constructor(name, opts) {
261
- super(name, opts);
262
- }
263
- }
264
- /** A gauge of the whole app: any code may record to it. */
265
- export class GlobalGauge extends Gauge {
266
- /** Declares the global gauge `name`. */
267
- constructor(name, opts) {
268
- super(name, opts);
269
- }
270
- }
271
234
  /** How what is recorded is distributed: how long requests take, how large
272
- * uploads are. Belongs to the declaring service: only it records to it. */
235
+ * uploads are. By default it belongs to the declaring service, which alone
236
+ * records to it. */
273
237
  export class Histogram {
274
238
  inst;
275
239
  attrs;
276
240
  /** Declares the histogram `name`. */
277
241
  constructor(name, opts) {
278
- this.inst = new Lazy('histogram', name, opts, new.target === Histogram);
242
+ this.inst = new Lazy('histogram', name, opts, own(opts));
279
243
  }
280
244
  /** Binds the shared or global histogram `name`, declared elsewhere. */
281
245
  static named(name) {
@@ -290,32 +254,17 @@ export class Histogram {
290
254
  return this;
291
255
  }
292
256
  }
293
- /** A histogram shared between services: each that records to it is tracked as
294
- * using it. */
295
- export class SharedHistogram extends Histogram {
296
- /** Declares the shared histogram `name`. */
297
- constructor(name, opts) {
298
- super(name, opts);
299
- }
300
- }
301
- /** A histogram of the whole app: any code may record to it. */
302
- export class GlobalHistogram extends Histogram {
303
- /** Declares the global histogram `name`. */
304
- constructor(name, opts) {
305
- super(name, opts);
306
- }
307
- }
308
257
  // A group's `named` takes its label type as its type argument. TypeScript
309
258
  // cannot infer the name's literal type beside an explicit type argument, so
310
259
  // the name is a plain `string`, and the parser's check is the only one it
311
260
  // gets.
312
- /** A counter for each combination of the labels `L`. Belongs to the
313
- * declaring service: only it records to it. */
261
+ /** A counter for each combination of the labels `L`. By default it
262
+ * belongs to the declaring service, which alone records to it. */
314
263
  export class CounterGroup {
315
264
  inst;
316
265
  /** Declares the counter group `name`. */
317
266
  constructor(name, opts) {
318
- this.inst = new Lazy('counter', name, opts, new.target === CounterGroup);
267
+ this.inst = new Lazy('counter', name, opts, own(opts));
319
268
  }
320
269
  /** Binds the shared or global counter group `name`, declared elsewhere,
321
270
  * whose labels are `L`. */
@@ -332,34 +281,13 @@ export class CounterGroup {
332
281
  return this;
333
282
  }
334
283
  }
335
- /** A counter group shared between services: each that records to it is tracked
336
- * as using it. */
337
- export class SharedCounterGroup extends CounterGroup {
338
- /** Declares the shared counter group `name`. */
339
- constructor(name, opts) {
340
- super(name, opts);
341
- }
342
- with(labels) {
343
- return bind(SharedCounter, lazy(this), attributes(labels));
344
- }
345
- }
346
- /** A counter group of the whole app: any code may record to it. */
347
- export class GlobalCounterGroup extends CounterGroup {
348
- /** Declares the global counter group `name`. */
349
- constructor(name, opts) {
350
- super(name, opts);
351
- }
352
- with(labels) {
353
- return bind(GlobalCounter, lazy(this), attributes(labels));
354
- }
355
- }
356
- /** An up-down counter for each combination of the labels `L`. Belongs to the
357
- * declaring service: only it records to it. */
284
+ /** An up-down counter for each combination of the labels `L`. By default it
285
+ * belongs to the declaring service, which alone records to it. */
358
286
  export class UpDownCounterGroup {
359
287
  inst;
360
288
  /** Declares the up-down counter group `name`. */
361
289
  constructor(name, opts) {
362
- this.inst = new Lazy('upDownCounter', name, opts, new.target === UpDownCounterGroup);
290
+ this.inst = new Lazy('upDownCounter', name, opts, own(opts));
363
291
  }
364
292
  /** Binds the shared or global up-down counter group `name`, declared elsewhere,
365
293
  * whose labels are `L`. */
@@ -376,34 +304,13 @@ export class UpDownCounterGroup {
376
304
  return this;
377
305
  }
378
306
  }
379
- /** An up-down counter group shared between services: each that records to it is tracked
380
- * as using it. */
381
- export class SharedUpDownCounterGroup extends UpDownCounterGroup {
382
- /** Declares the shared up-down counter group `name`. */
383
- constructor(name, opts) {
384
- super(name, opts);
385
- }
386
- with(labels) {
387
- return bind(SharedUpDownCounter, lazy(this), attributes(labels));
388
- }
389
- }
390
- /** An up-down counter group of the whole app: any code may record to it. */
391
- export class GlobalUpDownCounterGroup extends UpDownCounterGroup {
392
- /** Declares the global up-down counter group `name`. */
393
- constructor(name, opts) {
394
- super(name, opts);
395
- }
396
- with(labels) {
397
- return bind(GlobalUpDownCounter, lazy(this), attributes(labels));
398
- }
399
- }
400
- /** A gauge for each combination of the labels `L`. Belongs to the
401
- * declaring service: only it records to it. */
307
+ /** A gauge for each combination of the labels `L`. By default it
308
+ * belongs to the declaring service, which alone records to it. */
402
309
  export class GaugeGroup {
403
310
  inst;
404
311
  /** Declares the gauge group `name`. */
405
312
  constructor(name, opts) {
406
- this.inst = new Lazy('gauge', name, opts, new.target === GaugeGroup);
313
+ this.inst = new Lazy('gauge', name, opts, own(opts));
407
314
  }
408
315
  /** Binds the shared or global gauge group `name`, declared elsewhere,
409
316
  * whose labels are `L`. */
@@ -420,34 +327,13 @@ export class GaugeGroup {
420
327
  return this;
421
328
  }
422
329
  }
423
- /** A gauge group shared between services: each that records to it is tracked
424
- * as using it. */
425
- export class SharedGaugeGroup extends GaugeGroup {
426
- /** Declares the shared gauge group `name`. */
427
- constructor(name, opts) {
428
- super(name, opts);
429
- }
430
- with(labels) {
431
- return bind(SharedGauge, lazy(this), attributes(labels));
432
- }
433
- }
434
- /** A gauge group of the whole app: any code may record to it. */
435
- export class GlobalGaugeGroup extends GaugeGroup {
436
- /** Declares the global gauge group `name`. */
437
- constructor(name, opts) {
438
- super(name, opts);
439
- }
440
- with(labels) {
441
- return bind(GlobalGauge, lazy(this), attributes(labels));
442
- }
443
- }
444
- /** A histogram for each combination of the labels `L`. Belongs to the
445
- * declaring service: only it records to it. */
330
+ /** A histogram for each combination of the labels `L`. By default it
331
+ * belongs to the declaring service, which alone records to it. */
446
332
  export class HistogramGroup {
447
333
  inst;
448
334
  /** Declares the histogram group `name`. */
449
335
  constructor(name, opts) {
450
- this.inst = new Lazy('histogram', name, opts, new.target === HistogramGroup);
336
+ this.inst = new Lazy('histogram', name, opts, own(opts));
451
337
  }
452
338
  /** Binds the shared or global histogram group `name`, declared elsewhere,
453
339
  * whose labels are `L`. */
@@ -464,25 +350,4 @@ export class HistogramGroup {
464
350
  return this;
465
351
  }
466
352
  }
467
- /** A histogram group shared between services: each that records to it is tracked
468
- * as using it. */
469
- export class SharedHistogramGroup extends HistogramGroup {
470
- /** Declares the shared histogram group `name`. */
471
- constructor(name, opts) {
472
- super(name, opts);
473
- }
474
- with(labels) {
475
- return bind(SharedHistogram, lazy(this), attributes(labels));
476
- }
477
- }
478
- /** A histogram group of the whole app: any code may record to it. */
479
- export class GlobalHistogramGroup extends HistogramGroup {
480
- /** Declares the global histogram group `name`. */
481
- constructor(name, opts) {
482
- super(name, opts);
483
- }
484
- with(labels) {
485
- return bind(GlobalHistogram, lazy(this), attributes(labels));
486
- }
487
- }
488
353
  //# sourceMappingURL=mod.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.js","sourceRoot":"","sources":["../../metrics/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AAGH,OAAO,EAAC,aAAa,EAAE,KAAK,EAAE,aAAa,EAAC,MAAM,2BAA2B,CAAC;AAG9E,OAAO,EAAC,aAAa,EAAC,CAAC;AA4BvB,0DAA0D;AAC1D,MAAM,IAAI;IAMW;IACA;IACA;IACA;IARX,IAAI,CAAY;IAExB;6BACyB;IACzB,YACmB,IAAU,EACV,IAAY,EACZ,IAAkC,EAClC,GAAY;QAHZ,SAAI,GAAJ,IAAI,CAAM;QACV,SAAI,GAAJ,IAAI,CAAQ;QACZ,SAAI,GAAJ,IAAI,CAA8B;QAClC,QAAG,GAAH,GAAG,CAAS;IAC5B,CAAC;IAEJ,GAAG;QACD,IAAI,CAAC,IAAI,KAAK,IAAI,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 @@
1
1
  export { appMeta } from './app_meta.js';
2
2
  export type { AppMeta, BuildMeta, CloudProvider, DeployMeta, EnvironmentMeta, EnvironmentType, GatewayMeta, HostedService, } from './app_meta.js';
3
- export { currentRequest } from './req_meta.js';
4
- export type { BaseRequestMeta, PubSubMessageMeta, RequestMeta, TraceData, } from './req_meta.js';
5
3
  export { meterProvider, tracerProvider } from './otel.js';
6
4
  export type { MeterProvider, TracerProvider } from './otel.js';
5
+ //# sourceMappingURL=mod.d.ts.map