Closed Bug 1507788 Opened 7 years ago Closed 7 years ago

Can't add group names with "." in them to metrics.yaml

Categories

(Toolkit :: Telemetry, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
Tracking Status
firefox65 --- affected

People

(Reporter: gfritzsche, Assigned: mdroettboom)

References

Details

(Whiteboard: [telemetry:mobilesdk:m3])

Attachments

(2 files)

I tried this from a test app integration and it fails.
Blocks: 1491345
Whiteboard: [telemetry:mobilesdk:m?]
Priority: -- → P3
There was some discussion I think '.' should be explicitly disallowed as it causes confusion. Dot notation is used in a number of places on the backend to refer to metrics, and I think it would be confusing to have names like `A.B.C`. Does that parse as 'A.B' + 'C' or 'A' + 'B.C'? Where would I find the metric definition? Since we've explicitly decided to have only two levels of hierarchy, I think it's important to be clear about that. There was discussion of this in the SDK doc, and I believe it was decided to use snake case, but then this got removed when it was refactored to describe how metrics are grouped within the metrics.yaml file (i.e. category names are keys at the top level, not attributes of the individual metrics). All that said, you probably got some inscrutable error message from jsonschema about this. Those should be improved regardless of the decision on the above.
Assignee: nobody → mdroettboom
Whiteboard: [telemetry:mobilesdk:m?] → [telemetry:mobilesdk:m3]
Following discussion in meeting, I am moving forward with supporting dots in category names.
Blocks: 1507790
Attachment #9026509 - Flags: review?(gfritzsche)
Attachment #9026511 - Flags: review?(gfritzsche)
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Attachment #9026509 - Flags: review?(gfritzsche)
Attachment #9026511 - Flags: review?(gfritzsche)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: