Skip to content

Generate events from a declarative registry (events.toml) #3221

Description

@chet

Dmitry's suggestion from the framework PR (#3192): keep the Event model, but stop hand-writing the event structs -- declare them in an events.toml registry and generate the derive-annotated structs from it. The registry then becomes the source of truth for docs/observability/core_metrics.md, turning the catalogue from observed-partial (whatever test_integration happens to exercise) into declared-total, with the integration test acting as a verifier of exposure instead of the generator of the docs. Messages-in-data also opens future i18n.

What this involves

Suggested by @poroh in #3192.

Part of #3169.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Fields

No fields configured for Enhancement.

Projects

Status
Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions