diff --git a/.changeset/announce-releases-on-discord.md b/.changeset/announce-releases-on-discord.md deleted file mode 100644 index a845151c..00000000 --- a/.changeset/announce-releases-on-discord.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/gateway-dispatch-wrappers.md b/.changeset/gateway-dispatch-wrappers.md deleted file mode 100644 index 4eea127a..00000000 --- a/.changeset/gateway-dispatch-wrappers.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wolfstar/plugin-gateway": minor ---- - -`GatewayClient#addDispatchWrapper` runs code around the processing of each dispatch received from Discord, such as a tracing span or an `AsyncLocalStorage` store that the cache writes and listeners run in, and `GatewayClient#addDestroyHook` runs a hook at the end of every `destroy()`, once the shards are disconnected and the dispatches processed, to flush what is left before the process exits. diff --git a/.changeset/gateway-hooks-from-plugins.md b/.changeset/gateway-hooks-from-plugins.md deleted file mode 100644 index 20baeda7..00000000 --- a/.changeset/gateway-hooks-from-plugins.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wolfstar/plugin-gateway": patch ---- - -`addDispatchWrapper` and `addDestroyHook` work when a plugin calls them from `postInitialization`, which runs before the fields of `GatewayClient` are initialized; they threw a `TypeError` about a private member there. diff --git a/.changeset/opentelemetry-dispatch-spans.md b/.changeset/opentelemetry-dispatch-spans.md deleted file mode 100644 index 40b317c2..00000000 --- a/.changeset/opentelemetry-dispatch-spans.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wolfstar/plugin-opentelemetry": minor ---- - -On a `GatewayClient` of `@wolfstar/plugin-gateway` 0.17 or later, the plugin opens one span per gateway dispatch, the root of a trace of its own, around its cache writes and listeners (`dispatches`, on by default, with `dispatches.ignore` for noisy types), and calls `flushTraces()` at the end of `GatewayClient#destroy` (`flushOnDestroy`, on by default). The README shows how to wire `flushTraces()` into the exit hooks of `@wolfstar/plugin-sharder`. diff --git a/.changeset/sharder-exit-hooks.md b/.changeset/sharder-exit-hooks.md deleted file mode 100644 index f79c1f47..00000000 --- a/.changeset/sharder-exit-hooks.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@wolfstar/plugin-sharder": minor ---- - -`ShardClient#addExitHook` runs a hook before the shard stops with `process.exit` (on `exit()`, `restart()`, a close from the manager, or the manager going away), which skips `beforeExit`, so traces or metrics can be flushed first. `ShardManager#addDestroyHook` runs a hook at the end of `destroy()`, once the shards are closed. diff --git a/packages/plugin-gateway/CHANGELOG.md b/packages/plugin-gateway/CHANGELOG.md index d8d49227..3a71675e 100644 --- a/packages/plugin-gateway/CHANGELOG.md +++ b/packages/plugin-gateway/CHANGELOG.md @@ -1,5 +1,15 @@ # @wolfstar/plugin-gateway +## 0.17.0 + +### Minor Changes + +- [#285](https://github.com/wolfstar-project/plugins/pull/285) [`54dbd76`](https://github.com/wolfstar-project/plugins/commit/54dbd7678542cdaff7cd97b076d11271755f6bc8) - `GatewayClient#addDispatchWrapper` runs code around the processing of each dispatch received from Discord, such as a tracing span or an `AsyncLocalStorage` store that the cache writes and listeners run in, and `GatewayClient#addDestroyHook` runs a hook at the end of every `destroy()`, once the shards are disconnected and the dispatches processed, to flush what is left before the process exits. + +### Patch Changes + +- [#288](https://github.com/wolfstar-project/plugins/pull/288) [`73195fd`](https://github.com/wolfstar-project/plugins/commit/73195fd3f934cdd1c52617becc4ac8c30349dee6) - `addDispatchWrapper` and `addDestroyHook` work when a plugin calls them from `postInitialization`, which runs before the fields of `GatewayClient` are initialized; they threw a `TypeError` about a private member there. + ## 0.16.3 ### Patch Changes diff --git a/packages/plugin-gateway/package.json b/packages/plugin-gateway/package.json index 27e183ec..28112954 100644 --- a/packages/plugin-gateway/package.json +++ b/packages/plugin-gateway/package.json @@ -1,6 +1,6 @@ { "name": "@wolfstar/plugin-gateway", - "version": "0.16.3", + "version": "0.17.0", "description": "Gateway (WebSocket) support for @wolfstar/http-framework: a GatewayClient emitting Structures, backed by a pluggable cache", "keywords": [ "discord", diff --git a/packages/plugin-opentelemetry/CHANGELOG.md b/packages/plugin-opentelemetry/CHANGELOG.md index ed6dafd2..2545da31 100644 --- a/packages/plugin-opentelemetry/CHANGELOG.md +++ b/packages/plugin-opentelemetry/CHANGELOG.md @@ -1,5 +1,11 @@ # @wolfstar/plugin-opentelemetry +## 0.3.0 + +### Minor Changes + +- [#288](https://github.com/wolfstar-project/plugins/pull/288) [`73195fd`](https://github.com/wolfstar-project/plugins/commit/73195fd3f934cdd1c52617becc4ac8c30349dee6) - On a `GatewayClient` of `@wolfstar/plugin-gateway` 0.17 or later, the plugin opens one span per gateway dispatch, the root of a trace of its own, around its cache writes and listeners (`dispatches`, on by default, with `dispatches.ignore` for noisy types), and calls `flushTraces()` at the end of `GatewayClient#destroy` (`flushOnDestroy`, on by default). The README shows how to wire `flushTraces()` into the exit hooks of `@wolfstar/plugin-sharder`. + ## 0.2.2 ### Patch Changes diff --git a/packages/plugin-opentelemetry/package.json b/packages/plugin-opentelemetry/package.json index c32a219d..81ac098d 100644 --- a/packages/plugin-opentelemetry/package.json +++ b/packages/plugin-opentelemetry/package.json @@ -1,6 +1,6 @@ { "name": "@wolfstar/plugin-opentelemetry", - "version": "0.2.2", + "version": "0.3.0", "description": "Plugin for @wolfstar/http-framework that traces the bot with OpenTelemetry: a preload starting the SDK and a plugin opening one span per interaction", "keywords": [ "http-framework", diff --git a/packages/plugin-sharder/CHANGELOG.md b/packages/plugin-sharder/CHANGELOG.md index b9b1ca3d..45871282 100644 --- a/packages/plugin-sharder/CHANGELOG.md +++ b/packages/plugin-sharder/CHANGELOG.md @@ -1,5 +1,11 @@ # @wolfstar/plugin-sharder +## 0.5.0 + +### Minor Changes + +- [#287](https://github.com/wolfstar-project/plugins/pull/287) [`4de0802`](https://github.com/wolfstar-project/plugins/commit/4de08022de7562872513050f46d9955d878f8135) - `ShardClient#addExitHook` runs a hook before the shard stops with `process.exit` (on `exit()`, `restart()`, a close from the manager, or the manager going away), which skips `beforeExit`, so traces or metrics can be flushed first. `ShardManager#addDestroyHook` runs a hook at the end of `destroy()`, once the shards are closed. + ## 0.4.1 ### Patch Changes diff --git a/packages/plugin-sharder/package.json b/packages/plugin-sharder/package.json index c8a50748..138491a5 100644 --- a/packages/plugin-sharder/package.json +++ b/packages/plugin-sharder/package.json @@ -1,6 +1,6 @@ { "name": "@wolfstar/plugin-sharder", - "version": "0.4.1", + "version": "0.5.0", "description": "Multi-process sharding for @wolfstar/plugin-gateway: spawn shards as processes, cluster workers, or worker threads, and message between them", "keywords": [ "cluster",