-
Notifications
You must be signed in to change notification settings - Fork 836
Closed
Description
Unless I’m missing something, it’s currently necessary to specify all labels at once. It would be nice tho if I could do something like this:
M = Counter("a counter", "counter that counts", ["id", "type"])
...
c = M.labels({"id": id}) # id is determined at runtime/initialization
...
c.labels({"type": "internal").inc() # type is unclear until it happens
...
c.labels({"type": "external").inc()Does that make sense?
riyadparvez and jvperrin
Metadata
Metadata
Assignees
Labels
No labels