generated from honeycombio/.github
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add browser.name attribute (#130)
## Which problem is this PR solving? Adds a `browser.name` attribute to events ## Short description of the changes Delegates to [ua-parser-js](https://www.npmjs.com/package/ua-parser-js) so the list of available browsers comes from there. At its core, this is just user-agent parsing, with all of the caveats that come with that: it's fragile, a best guess effort, etc. ex. I tested with [Arc](https://arc.net) and it's getting parsed as Chrome; this is expected since Arc doesn't change the User Agent at all. ## How to verify that this has the expected result Run the app and see `browser.name` attached: ![image](https://github.com/honeycombio/honeycomb-opentelemetry-web/assets/11722214/3ab5c6a9-6a3e-4104-9609-2e66cf2e5315)
- Loading branch information
1 parent
e810125
commit 877f2f1
Showing
5 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters