Skip to content

Conversation

eloytoro
Copy link
Contributor

@eloytoro eloytoro commented Jul 22, 2025

New event type: transtions

These events are part of the QoE data model definition (Read more about it here https://datadoghq.atlassian.net/wiki/spaces/RUMP/pages/5241110685/QoE+RUM+Payload+Collection)

@eloytoro eloytoro requested review from a team as code owners July 22, 2025 08:43
@eloytoro eloytoro force-pushed the eloytoro/transition-schema branch from 273aa15 to 9d80c99 Compare September 11, 2025 13:33
@eloytoro eloytoro requested a review from ncreated September 11, 2025 13:33
ncreated
ncreated previously approved these changes Sep 11, 2025
RomanWuattier
RomanWuattier previously approved these changes Sep 11, 2025
Copy link
Contributor

@RomanWuattier RomanWuattier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a small typo, but it looks good to me otherwise

Copy link
Contributor

@barboraplasovska barboraplasovska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM👍

Comment on lines 27 to 46
"view": {
"type": "object",
"description": "Attributes of the view's container",
"required": ["id"],
"properties": {
"id": {
"type": "string",
"description": "ID of the parent view",
"pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
"readOnly": true
}
},
"readOnly": true
},
"source": {
"type": "string",
"description": "Source of the parent stream",
"enum": ["android", "ios", "browser", "flutter", "react-native", "roku", "unity", "kotlin-multiplatform"],
"readOnly": true
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ question: ‏Since we already have view.id and source from common schema, do we also need to have them there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, it's not needed, removing it

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about source?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes that one isn't needed either 🤦 removing it...

@eloytoro eloytoro requested a review from ncreated September 12, 2025 08:48
Comment on lines 8 to 14
"container": {
"type": "object",
"description": "Stream Container properties (stream wrapping the current stream)",
"required": ["stream", "source"],
"properties": {
"stream": {
"type": "object",
Copy link
Contributor

@bcaudan bcaudan Sep 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 suggestion: ‏if source is not needed, we could also remove the container level, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, i was basing it off the view-container schema, but that wasn't the correct definition to use as an example

in 1992a90 im making it so it's now named _stream-event-schema.json and it only makes the stream.id property required

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the iteration on this one, I'm discovering the topic as I am reviewing.
It seems that we would now have a _stream-event-schema.json used by view event and a _stream-schema.json used by transition event.
Depending on how we plan to use those schemas, we could probably make their names and descriptions more explicit.
Happy to chat about it if needed.

ncreated
ncreated previously approved these changes Sep 12, 2025
Copy link
Contributor

@bcaudan bcaudan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@eloytoro eloytoro merged commit f699ef7 into master Sep 12, 2025
9 checks passed
@eloytoro eloytoro deleted the eloytoro/transition-schema branch September 12, 2025 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants