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)

enhancement

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 Strings 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.

No longer blocks: 1698184
Depends on: 1698184
Blocks: 1767039
Blocks: 1767055
Priority: -- → P3
Assignee: nobody → chutten
Priority: P3 → P1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: