Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: NR 328461 add CLS browser golden signals #1839

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions entity-types/browser-application/golden_metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ interactionToNextPaint75PercentileS:
from: PageViewTiming
eventId: entityGuid
eventName: appName
cumulativeLayoutShift75Percentile:
title: Cumulative layout shift (75 percentile)
unit: STRING
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think STRING is the proper unit here.

Is there any specific reason why this should be an STRING?

I totally understand that any other values in the ENUM do not fit completely your needs, but I'd not put an STRING here.

In many other places, we use just COUNT, which is the default.
The COUNT unit, is shown as no just a number in the UI.

Let me share some examples:

query:
select: percentile(cumulativeLayoutShift, 75)
from: PageViewTiming
eventId: entityGuid
eventName: appName
errors:
title: Errors
unit: COUNT
Expand Down
4 changes: 4 additions & 0 deletions entity-types/browser-application/summary_metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ interactionToNextPaint75PercentileS:
goldenMetric: interactionToNextPaint75PercentileS
unit: SECONDS
title: Interaction to next paint (75 percentile) (s)
cumulativeLayoutShift75Percentile:
goldenMetric: cumulativeLayoutShift75Percentile
unit: STRING
title: Cumulative layout shift (75 percentile)
errors:
goldenMetric: errors
unit: COUNT
Expand Down
2 changes: 1 addition & 1 deletion validator/schemas/golden-metrics-schema-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"$id": "#/properties/unit",
"type": "string",
"title": "The unit of the metric",
"enum": ["REQUESTS_PER_SECOND", "REQUESTS_PER_MINUTE", "PAGES_PER_SECOND", "MESSAGES_PER_SECOND", "OPERATIONS_PER_SECOND", "COUNT", "SECONDS", "MS", "PERCENTAGE", "BITS", "BYTES", "BITS_PER_SECOND", "BYTES_PER_SECOND", "HERTZ", "APDEX", "TIMESTAMP", "CELSIUS"],
"enum": ["REQUESTS_PER_SECOND", "REQUESTS_PER_MINUTE", "PAGES_PER_SECOND", "MESSAGES_PER_SECOND", "OPERATIONS_PER_SECOND", "COUNT", "SECONDS", "MS", "PERCENTAGE", "BITS", "BYTES", "BITS_PER_SECOND", "BYTES_PER_SECOND", "HERTZ", "APDEX", "TIMESTAMP", "CELSIUS", "STRING"],
"examples": [
"COUNT"
]
Expand Down
Loading