You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e6168f7
Browse filesBrowse the repository at this point in the historyBrowse files
* TableInfo gains supports_returning (default False): workers must opt in to
RETURNING support per-table. Existing transactor-backed writable fixture
and any future writers that wire affected-row emit must set this to True.
* New vgi-fixture-simple-writable-worker entry point: SQLite-backed in-memory
fixture exercising INSERT/UPDATE/DELETE (with and without RETURNING) without
duckdb-python's subcursor / enable_suspended_queries. Includes intentional
failure modes (items_no_returning, items_insert_only, items_broken_returning)
to drive both the C++ supports_returning gate and the runtime schema validator.
* Sentry: fall back to importlib.metadata.version("vgi") when SENTRY_RELEASE
is unset so dev/test runs still tag a release.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|`VGI_OTEL_DISABLE_METRICS`| Disable metrics only (`1`/`true`/`yes`) |
292
292
|`SENTRY_DSN`| Enable Sentry error reporting (requires `[sentry]` extra). When set, `vgi-serve` calls `sentry_sdk.init()` before constructing the worker so vgi-rpc's auto-attach picks up RPC dispatch errors and VGI enriches with `vgi.function.name`, `vgi.attach_id`, `vgi.transaction_id`, etc. |
293
293
|`SENTRY_ENVIRONMENT`| Environment tag passed to `sentry_sdk.init()` (e.g. `production`, `staging`) |
294
-
|`SENTRY_RELEASE`| Release identifier passed to `sentry_sdk.init()` (e.g. git SHA) |
294
+
|`SENTRY_RELEASE`| Release identifier passed to `sentry_sdk.init()` (e.g. git SHA). When unset, falls back to the installed `vgi` package version so every run is associated with a release; deploys should set this to a git SHA for commit tracking.|
295
295
|`SENTRY_TRACES_SAMPLE_RATE`| Float in `[0, 1]` for performance sampling (Sentry's standard knob) |
Set `SENTRY_DSN` (and install `vgi[sentry]`) to forward unhandled exceptions to Sentry. `vgi-serve` calls `sentry_sdk.init()` automatically before building the worker, which lets vgi-rpc's auto-attach hook (added in `vgi-rpc 0.12.0`) wire RPC-level instrumentation onto every `RpcServer`. VGI then layers on:
-**Dispatch-scoped scope tags** — `vgi.function.name`, `vgi.function.type`, `vgi.principal`, `vgi.auth_domain`, `vgi.authenticated`, plus init-time fields (`vgi.init.execution_id`, `vgi.init.phase`). `vgi.attach_id` and `vgi.transaction_id` are set by **vgi-rpc's** dispatch hook (since 0.14.0) on every method that carries them — top-level kwargs, request dataclasses, and `InitRequest.bind_call` are all unwrapped automatically. Tag values are 12-char SHA-256 prefixes, so the tag-value distribution UI stays bounded; the full hex remains in catalog breadcrumbs for direct lookup.
371
371
-**Per-batch breadcrumbs** under category `vgi.execute` carrying `function_name`, `function_type`, `duration_ms`, `input_rows`, `output_rows`, `input_bytes`, `output_bytes`, and `execution_id`. If a stream crashes mid-flight, the event timeline shows the size and shape of every preceding batch.
372
-
-**Catalog-lifecycle breadcrumbs** under categories `catalog.attach`, `catalog.detach`, `catalog.create`, `catalog.transaction.begin`, `catalog.transaction.commit`, `catalog.transaction.rollback`. These provide the mapping from opaque `attach_id` and `transaction_id` hex strings back to catalog names — without them, an event tagged `vgi.attach_id=4f3c...` is unreadable to a developer.
372
+
-**Catalog-lifecycle breadcrumbs** under categories `catalog.attach`, `catalog.detach`, `catalog.create`, `catalog.transaction.begin`, `catalog.transaction.commit`, `catalog.transaction.rollback`. These provide the mapping from short-hashed `vgi.attach_id` / `vgi.transaction_id` tags back to full hex IDs (and to catalog names) — without them, an event tagged `vgi.attach_id=4f3c2a1b9d8e` is unreadable to a developer.
373
+
-**Catalog-attach scope tags** — `vgi.catalog.name`, `vgi.data_version_spec`, `vgi.implementation_version` are set on the `catalog_attach` transaction so events fired during attach are filterable by catalog identity. Note: these tags only apply to the attach transaction itself, not subsequent operations on the attached catalog (one Sentry transaction per RPC method).
**Attach options redaction:** by default *no* options are logged in the `catalog.attach` / `catalog.create` breadcrumbs because options routinely carry credentials. Implementers opt in via `CatalogInterface.loggable_attach_options(options) -> Mapping`, which returns a redacted, safe-to-log subset (host, region, bucket — never password/token/secret). When the override returns an empty mapping (the default), the `options` field is omitted from the breadcrumb entirely. See `docs/catalog-interface.md` for details.
375
377
378
+
**Releases.**`vgi-serve` populates `release` from `SENTRY_RELEASE` if set, otherwise from `importlib.metadata.version("vgi")`. Production deploys should set `SENTRY_RELEASE=$(git rev-parse HEAD)` (or a tagged release identifier) so Sentry's commit-tracking and regression-detection features can correlate events to specific commits. Publishing GitHub releases makes the release-comparison UI more useful.
379
+
376
380
The same enrichment applies to OTel spans when `VGI_OTEL_ENABLED=1` — both backends read from the same `VgiTracer.set_current_span_attributes()` call sites in `vgi/otel.py`. Either, neither, or both can be active in a process.
0 commit comments