Closed
Bug 1767037
Opened 2 years ago
Closed 2 years ago
Allow runtime-defined event extra keys
Categories
(Data Platform and Tools :: Glean: SDK, enhancement, P1)
Data Platform and Tools
Glean: SDK
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: chutten, Assigned: chutten)
References
Details
Attachments
(1 file)
The present implementation of ExtraKeys
supplies the list of allowed keys via const ALLOWED_KEYS: &'static [&'static str];
. This is then used in the glean-core event
metric ctor to supply an owned Vec
of owned String
s which the metric uses to validate incoming event records.
I think we'd have the same ergonomics but additional flexibility if we turned ALLOWED_KEYS
into getAllowedKeys()
on the trait
. And then the runtime metrics registration use case can be satisfied by supplying a DynamicExtraKeys
which is constructed with its list of allowed keys.
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Priority: -- → P3
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee: nobody → chutten
Priority: P3 → P1
Comment 2•2 years ago
|
||
badboy merged PR #2117: "bug 1767037 - RLB: Add a new ctor to Event that takes a list of allowed event extra keys." in fee4ebe.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•