Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .changeset/announce-releases-on-discord.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gateway-dispatch-wrappers.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gateway-hooks-from-plugins.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/opentelemetry-dispatch-spans.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sharder-exit-hooks.md

This file was deleted.

10 changes: 10 additions & 0 deletions packages/plugin-gateway/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-gateway/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/plugin-opentelemetry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-opentelemetry/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 6 additions & 0 deletions packages/plugin-sharder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-sharder/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading