You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@flagon.apache.org by "brucearctor (via GitHub)" <gi...@apache.org> on 2026/07/14 01:23:28 UTC
[I] feat(schema): restructure log output format to match proto schema (flagon)
brucearctor opened a new issue, #143:
URL: https://github.com/apache/flagon/issues/143
## Summary
Change the default JSON wire format to align with the proto schema structure. This is the primary breaking change in v3.0.0.
## Current Format (v2.x — flat)
```json
{
"target": "button#submit",
"pageUrl": "https://example.com",
"userAgent": "Mozilla/5.0...",
"clientTime": 1720800000000,
"type": "click",
"logType": "raw",
"userId": "user123",
"sessionId": "sess-abc",
"attributes": { "data-count": 5 }
}
```
## New Format (v3.0 — proto-aligned)
```json
{
"metadata": {
"pageUrl": "https://example.com",
"userAgent": "Mozilla/5.0...",
"clientTime": 1720800000000,
"userId": "user123",
"sessionId": "sess-abc",
"screenResolution": { "width": 1920, "height": 1080 }
},
"target": "button#submit",
"eventType": "click",
"userAction": true,
"attributes": { "data-count": "5" }
}
```
## Key Changes
- Shared fields grouped under `metadata` object
- `type` → `eventType`
- `scrnRes` → `screenResolution` (inside metadata)
- `attributes` values are always strings (no `JSON.parse`)
- `logType` field moves to envelope level
## Depends On
- #142 (wire proto types into packageLogs)
- #139 (LogExporter interface — enables legacy format fallback)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@flagon.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@flagon.apache.org
For additional commands, e-mail: notifications-help@flagon.apache.org
Re: [I] feat(schema): restructure log output format to match proto schema (flagon)
Posted by "brucearctor (via GitHub)" <gi...@apache.org>.
brucearctor closed issue #143: feat(schema): restructure log output format to match proto schema
URL: https://github.com/apache/flagon/issues/143
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@flagon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@flagon.apache.org
For additional commands, e-mail: notifications-help@flagon.apache.org