-
Notifications
You must be signed in to change notification settings - Fork 243
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
[faro collector] add missing struct fields so that payload.meta.browser fields are not lost #1824
Conversation
i've modified the test payload to include some values and added them to the expected test result. i dont think i have to modify any config adapters or documentation? if i do please let me know |
@t00mas do you have some context for this PR? |
No context, but LGTM I'd like to have an issue created, so I can reference that in other components too, please. |
@@ -50,6 +50,7 @@ Main (unreleased) | |||
|
|||
- Fix issue where `loki.source.kubernetes` took into account all labels, instead of specific logs labels. Resulting in duplication. (@mattdurham) | |||
|
|||
- Fix an issue where some `faro.receiver` would drop multiple fields defined in `payload.meta.browser`, as fields were defined in the struct |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: you can add your github @ if you want credit for it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
hi. sorry the context is i wanted the fields so i opened a PR. i opened a basic issue. |
…er fields are not lost (grafana#1824) * Update payload.go * Update CHANGELOG.md * Update payload.go * Update payload.go * Update payload.json * Update payload.json * Update payload.json * Update payload_test.go * Update payload.json
…er fields are not lost (#1824) * Update payload.go * Update CHANGELOG.md * Update payload.go * Update payload.go * Update payload.json * Update payload.json * Update payload.json * Update payload_test.go * Update payload.json
* Add v1.4.3 to the changelog * [faro collector] add missing struct fields so that payload.meta.browser fields are not lost (#1824) * Update payload.go * Update CHANGELOG.md * Update payload.go * Update payload.go * Update payload.json * Update payload.json * Update payload.json * Update payload_test.go * Update payload.json * Remove Pyroscope scrape loops for no longer active targets (#1833) * fix: increase timeout for informer on loki.source.podlogs (#1862) * [prometheus.exporter.windows] Fix default values (#1878) * Fix default values * Wrap regexes * Remove unnecessary comment * Fix comment * enabled_list in the smb block should be deprecated * Fix docs and comments * Apply suggestions from code review Co-authored-by: Clayton Cornell <[email protected]> * Replace "regex" with "regular expression" * Update changelog --------- Co-authored-by: Clayton Cornell <[email protected]> * Fix changelog * Change VERSION --------- Co-authored-by: a <[email protected]> Co-authored-by: Alex Burnett <[email protected]> Co-authored-by: Clayton Cornell <[email protected]>
PR Description
a few fields are missing in the struct which is used to read the meta.browser object that faro sends, which results in that information being lost. https://github.com/grafana/faro-web-sdk/blob/v1.10.2/packages/core/src/metas/types.ts#L60-L70
Which issue(s) this PR fixes
fixes #1832
Notes to the Reviewer
i did not do the work for properly parsing
NavigatorUABrandVersion[] | string
, since it's more work, and i mostly really just want viewportWidth and viewportHeight. since that field is already being ignored right now, it should be safe to not do until maybe someone else who needs it can add it.PR Checklist