web: prioritize `browser` typings for `@opentelemetry` packages
Created by: valerybugakov
Context
Prioritize browser
typings for @opentelemetry
packages. The browser
field in the package.json
is used to load the browser code, but Typescript typings are specific to the node.js
environment by default. This PR fixes it by augmenting third-party typings.
There's no easy way to patch in the source repo.
Test plan
Ensure that browser
types are used. (e.g., try looking at the OTLPTraceExporter
type)
App preview:
Check out the client app preview documentation to learn more.