Upgrading to 0.5
This guide covers moving from 0.4.x to 0.5.0. 0.5 has no breaking changes and no database migrations. It adds OpenTelemetry metrics and traces. The HTTP API, the hub and the SDK APIs are unchanged.
What's new
| Area | In 0.5.0 | What to do |
|---|---|---|
| Metrics | OpenTelemetry metrics are on by default and pushed over OTLP to OTEL_EXPORTER_OTLP_ENDPOINT. The Compose files default it to http://localhost:4317, which inside a container is the container itself. No ids or content are exported. See Observability. | Set OTEL_EXPORTER_OTLP_ENDPOINT to your collector, or set Dotwire__DisableMetrics=true if you don't run one. |
| Tracing | Opt-in traces over OTLP, off by default. Spans are scrubbed to an allowlist of tags, with no paths, SQL text, ids or content. | Nothing, unless you want traces. Then set Dotwire__EnableTracing=true. |
| Local dashboard | A new optional compose.observability.yaml overlay runs Grafana with Prometheus and Tempo, and a provisioned dotwire dashboard. See Local dashboard. | Nothing. |
| Postgres pool names | The read and write data sources are now named read and write, so Npgsql pool metrics carry db.client.connection.pool.name. | Nothing. Dashboards that summed db.client.connection.* across pools still work. |
| Audit writer | An idle active audit writer runs SELECT 1 on its locked Postgres session every 30 seconds. A dead session is noticed sooner, and the lock is contested again. See Audit log. | Nothing. |
| SDKs | All packages are at 0.5.0 with no API changes. @dotwire/react 0.5.0 requires @dotwire/client ^0.5.0. | Upgrade @dotwire/react and @dotwire/client together. |
Rollout order
- Decide where metrics go. Set
OTEL_EXPORTER_OTLP_ENDPOINTto your collector, orDotwire__DisableMetrics=true. - Roll the server nodes to 0.5.0. With the Compose files, set
DOTWIRE_VERSION=0.5.0or pull the new defaults. - Roll host applications and browser clients on the 0.5.0 SDKs whenever it suits you. 0.4 SDKs keep working against a 0.5 server.
To roll back, run the 0.4.3 image again. 0.5 made no schema changes.