Replies: 8 comments 15 replies
-
+1 for It would be nice if the server maintained like |
Beta Was this translation helpful? Give feedback.
-
? |
Beta Was this translation helpful? Give feedback.
-
The user that last edited the object - NKEY, id, or DN - could be useful. Although it would leak user IDs so there's a potential security concern. |
Beta Was this translation helpful? Give feedback.
-
server version when created, edited time and revision number would be great. Also have a way to represent the original intention of the stream like if mqtt, kv, object, etc... |
Beta Was this translation helpful? Give feedback.
-
Really cool! It's not explicitly part of the ADR, but will the metadata also be exposed in things like Prometheus metrics, to display relevant metadata in graphs for example? |
Beta Was this translation helpful? Give feedback.
-
Since adding metadata to micro some of these seem a bit weird, its not edited, no point in |
Beta Was this translation helpful? Give feedback.
-
I agree. I think |
Beta Was this translation helpful? Give feedback.
-
I've done a bit of this on a branch in the CLI and just want to be sure we're on the same page.
It's quite verbose, and would be even more when we add server ones. So I am slightly concerned about the noise this generates UX wise but otherwise it would be useful? I might hide these when rendering basic info but include with |
Beta Was this translation helpful? Give feedback.
-
Overview
ADR-33 https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-33.md introduced metadata fields for consumers and stream.
Users can use those, but we also reserved internal prefixes:
format
_nats_field_about
or
_nats.field.about
The latter one is closer to how NATS subjects are structured.
prefixes
I think it would be good to have subject-like structure:
I assume past tense when viable.
list of internal keys
This thread discusses all fields set by server and client.
After gathering the list, ADR-33 will be updated.
I've included some rough ideas below.
Please add more.
The list will be updated.
Server
_nats.server.created.version
- immutable, specifying the server version that created the resource._nats.server.updated.version
- server version that executed the last update_nats.server.updated.time
- when resource was last time updated_nats.server.kind
- type/kind/purpose of the resource - kv, object store, mqtt etc.Client
_nats.client.created.library
- library language_nats.client.created.version
- library language version_nats.client.updated.library
- last updated by library_nats.client.updated.version
- library language versionBeta Was this translation helpful? Give feedback.
All reactions