Event stream: make non-event metrics accessible in event stream table
Categories
(Data Platform and Tools :: Glean Platform, task)
Tracking
(Not tracked)
People
(Reporter: janerik, Assigned: janerik)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
We should make non-event metrics accessible in the event stream table.
Some apps do set them.
Luckily it's often the case that they send only one event per ping, so metrics apply as is and are either app
or ping
lifetime.
After talking with wil: We could merge all metrics into the event extra as JSON.
Would need another UDF, e.g. https://sql.telemetry.mozilla.org/queries/96989/source
Assignee | ||
Comment 1•1 year ago
|
||
Back in the proposal we called them out as a separate column.
As a structured column this would require us to list out the schema for each table. That doesn't seem good.
We essentially have two options:
- Merge all of
metrics
converted to JSON intoevent_extra
- Have a new column
metrics
, JSON type, and storemozfun.json.to_map(metrics)
in there. That way it's easily accessible, same as the event extras
:wil, thoughts?
Assignee | ||
Comment 2•1 year ago
|
||
After talking with will we're going with a JSON column metrics
, done by TO_JSON(metrics)
from the original table.
Assignee | ||
Comment 3•1 year ago
|
||
Assignee | ||
Comment 4•1 year ago
|
||
badboy merged PR [mozilla/bigquery-etl]: Bug 1875816 - events stream: Expose additional metrics as a new JSON column (#4926) in 56a12c7.
Description
•