Open Bug 2077131 Opened 1 month ago Updated 3 days ago

Add an optional `flows` field to events in the Glean ping schema

Categories

(Data Platform and Tools :: Glean: SDK, enhancement, P1)

enhancement

Tracking

(Not tracked)

People

(Reporter: travis_, Assigned: travis_)

References

(Blocks 3 open bugs)

Details

Attachments

(1 external file)

Add flows as an optional field on the event object in the Glean schema in mozilla-pipeline-schemas, next to the existing session field, and make the same change to glean.1.schema.json in the Glean repository.

flows is an array of objects, each with two required properties:

  • name (string): the flow's name, as declared in the product's flows.yaml.
  • seq (integer): the instance's sequence number within the session, starting at 0.

The array is omitted when an event belongs to no active flow instance. Like session, each entry should set additionalProperties: false. In BigQuery this should come out as ARRAY<STRUCT<name STRING, seq INT64>>.

This has to be deployed before any Glean SDK release emits flows, because unrecognized fields go to additional_properties and the data can't be recovered. No SDK code depends on it shipping at the same time.

Blocks: 2077148
Blocks: 2077152
Priority: -- → P3
Assignee: nobody → tlong
Priority: P3 → P2
Priority: P2 → P1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: