mozilla-services / syncstorage-rs

Sync Storage server in Rust
Mozilla Public License 2.0
939 stars 49 forks source link

Improve user agent parsing (Sentry not always reporting UA data correctly) #788

Open pjenvey opened 4 years ago

pjenvey commented 4 years ago

We use the generic woothee user agent parser, however our Sync clients tend to use custom UA strings that don't always parse down to useful tags (e.g. #787).

We should implement our own user agent parsing instead. Either woothee should be abandoned entirely or only used as a fallback.

rfk commented 4 years ago

Aye, unfortunately most standard UA-parsing libraries don't handle the sync UA strings well. Summary of known current client behaviour:

For unrelated reasons, I'm interested in trying to get all our clients to include additional information in their UA string, such as the release channel identifier. I think that might argue in favor of using some custom parsing to augment the off-the-shelf library.

pjenvey commented 3 years ago

More observation of the UA strings in the duplicate #1027, such as this comment