{"_id":"@opentelemetry/browser-instrumentation","_rev":"18-1c88c4483ba8a2f5a8f13dd28a6e7452","name":"@opentelemetry/browser-instrumentation","dist-tags":{"latest":"0.12.1"},"versions":{"0.1.0":{"name":"@opentelemetry/browser-instrumentation","version":"0.1.0","keywords":["opentelemetry","browser","web","instrumentation","navigation-timing","user-action","web-vitals"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.1.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"dist":{"shasum":"4623ed14b34c463308657bb828448408a564fc64","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.1.0.tgz","fileCount":28,"integrity":"sha512-txRV707bIdP7rmzyLrsBw2131aa27HIq5YZFAPiXhmmWRpa97tObfwMpv5Nqlv+U1912bBgD7RzdwzqIUw4elA==","signatures":[{"sig":"MEYCIQCu+J69HH/1QP/KroEr2ybxCIC5lTjDTogAD8F9mJmO9AIhAKMayJ/UsK7+HGUaSJMc6L11YQA1pGEbbnvfi7D9kNxG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69879},"type":"module","exports":{"./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"80443fbd44728604f7f43bc97f345d23ff8ff541","scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.6.4","description":"OpenTelemetry browser instrumentations.","directories":{},"_nodeVersion":"24.10.0","dependencies":{"web-vitals":"^5.1.0","@opentelemetry/api-logs":"^0.213.0","@opentelemetry/instrumentation":"^0.213.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opentelemetry/web-utils":"*","@opentelemetry/test-utils":"*"},"peerDependencies":{"@opentelemetry/api":"^1.9.0"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.1.0_1773335546008_0.12091938959564819","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@opentelemetry/browser-instrumentation","version":"0.2.0","keywords":["opentelemetry","browser","web","instrumentation","navigation-timing","user-action","web-vitals"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.2.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"dist":{"shasum":"e330aab5a8a1d1007beb92534a7c11374d79a94b","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.2.0.tgz","fileCount":31,"integrity":"sha512-652B337C6CqlJ9VBwMGGnnK5uobRYDGSl32sM+Iw+UzAWxa0N5iTmV878ceBOF67SzBS1oFWPZ5MNp+3cOrTpQ==","signatures":[{"sig":"MEUCIAn98Ff/PRGVNDTmilt3D7eqHDlc5J5O5B2mmFIE0mklAiEAo5yYxdu+LD3PdII9LWWyBRcW3DBwFKlPqPI92aOxiLI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":84583},"type":"module","exports":{"./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"416ff8918863ca090dbced1fffed4f2ecf240612","imports":{"#instrumentation-utils":"./src/utils/index.ts","#instrumentation-test-utils":"./src/test-utils/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.9.0","description":"OpenTelemetry browser instrumentations.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"web-vitals":"^5.1.0","@opentelemetry/api-logs":"^0.213.0","@opentelemetry/instrumentation":"^0.213.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opentelemetry/sdk-logs":"^0.213.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.0"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.2.0_1773944603867_0.4833932828161205","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@opentelemetry/browser-instrumentation","version":"0.3.0","keywords":["opentelemetry","browser","web","instrumentation","navigation-timing","user-action","web-vitals","resource-timing"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.3.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"dist":{"shasum":"a1c034a6c528d9b1a35a4ca784797e1d3b829430","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.3.0.tgz","fileCount":41,"integrity":"sha512-jAz85R0BR1dV7DV3fVSCg1OeZ8qGQaOwu5adVMWd5+VJkT8QvXoMQ+Tymat3sATG/o2L930piu/llc/nVbbP+g==","signatures":[{"sig":"MEUCIBxenzVgUdKdYXiZ4Pi4OdmeoEIO9Q+EQ3UEFzPL1pyIAiEAqi9BtZuKXWRoIRMXlY3YK0amldyNxGIhaJRsnU0HGgw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":126303},"type":"module","exports":{"./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"7b3549a08356a31624c76f58ba23c834759ce0a8","imports":{"#instrumentation-utils":"./src/utils/index.ts","#instrumentation-test-utils":"./src/test-utils/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.11.0","description":"OpenTelemetry browser instrumentations.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"web-vitals":"^5.2.0","@opentelemetry/api-logs":"^0.215.0","@opentelemetry/instrumentation":"^0.215.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opentelemetry/sdk-logs":"^0.215.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.0"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.3.0_1776994262315_0.5396157909851618","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@opentelemetry/browser-instrumentation","version":"0.4.0","keywords":["opentelemetry","browser","web","instrumentation","console","navigation-timing","user-action","web-vitals","resource-timing","navigation"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.4.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"dist":{"shasum":"a47b61287866a5edc61bdabdd8d5ba518ee11947","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.4.0.tgz","fileCount":60,"integrity":"sha512-FbYHUmy0MgShZstBJk1Y/DfKyUwQEm9LT4CoGPlqr2xF40OchZsi+XFVZcRwZFoXEtKSw6ZRme+4NYHUYOhVhg==","signatures":[{"sig":"MEQCIGdZZDbw6TMFjcFyndp7H+aO0jGoPvBJ+FoiQOhlqQMcAiAlXNJY6aYqSeV21Je9IykRcmMWZlg4shIlCCICp1qRPg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":169250},"type":"module","exports":{"./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"aa9c52036e3ee2e6a9f402926e07f30a7d0f5084","imports":{"#instrumentation-utils":"./src/utils/index.ts","#instrumentation-test-utils":"./src/test-utils/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.11.0","description":"OpenTelemetry browser instrumentations.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"web-vitals":"^5.2.0","@opentelemetry/api-logs":"^0.216.0","@opentelemetry/instrumentation":"^0.216.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opentelemetry/sdk-logs":"0.216.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.1"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.4.0_1777582389749_0.5254680853604068","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@opentelemetry/browser-instrumentation","version":"0.5.0","keywords":["opentelemetry","browser","web","instrumentation","console","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.5.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"dist":{"shasum":"b4ec55b439f3f4abc158a579b3a66682cf3a5225","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.5.0.tgz","fileCount":66,"integrity":"sha512-XIl+U7XyGSWp3LPhTj0o4krWrWwN0qj0KtvA1shT8jInbpQVhbzWZsDbqYSbrvjsBE3sK1L6AS6+ZXPmG7fyWg==","signatures":[{"sig":"MEUCIQDlVXHoqGeG/J/BQ5+xugZQeMqnopj64vSFle9RRyXCQgIgEjmuoQJNIO6nSaO0PxMBlcPxGGnJm95F31EafzCQCAo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":180125},"type":"module","exports":{"./experimental/errors":"./dist/errors/index.js","./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"26b0fe3e1daeb876a1dbcc8d963505397b4a1cdd","imports":{"#utils":"./src/utils/index.ts","#utils/test":"./src/utils/test/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.11.0","description":"OpenTelemetry browser instrumentations.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"web-vitals":"^5.2.0","@opentelemetry/api-logs":"^0.217.0","@opentelemetry/instrumentation":"^0.217.0","@opentelemetry/semantic-conventions":"^1.40.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opentelemetry/sdk-logs":"0.217.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.1"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.5.0_1778190350028_0.9492867316271449","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@opentelemetry/browser-instrumentation","version":"0.5.1","keywords":["opentelemetry","browser","web","instrumentation","console","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.5.1","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"dist":{"shasum":"8dc805a588ca975026258e31696f9af8a0bc2adc","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.5.1.tgz","fileCount":65,"integrity":"sha512-V7u+mZ95yRbmusZwLeC0gqM7Flltc0PyYAztUuX3/2qCqqr/uiZ64CKlNmmcYx1vGQDUr/iIQqjMvTJAHH6npg==","signatures":[{"sig":"MEUCIHId24aq81Xe5zCJ0NGHjw1qR9AcfZrRd+NhyRX8RnMpAiEA7M+HQsvhp3KPSNEHWHd+VOYUQC8lRroQdeoDI0H6zW0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":177441},"type":"module","exports":{"./experimental/errors":"./dist/errors/index.js","./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"b4e600b2fda00ad9b04de45456a32559bbbbe2db","imports":{"#utils":"./src/utils/index.ts","#utils/test":"./src/utils/test/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.11.0","description":"OpenTelemetry browser instrumentations.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"web-vitals":"^5.2.0","@opentelemetry/core":"^2.7.1","@opentelemetry/api-logs":"^0.217.0","@opentelemetry/instrumentation":"^0.217.0","@opentelemetry/semantic-conventions":"^1.40.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opentelemetry/sdk-logs":"0.217.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.1"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.5.1_1778622627815_0.9931759887872709","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"@opentelemetry/browser-instrumentation","version":"0.5.2","keywords":["opentelemetry","browser","web","instrumentation","console","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.5.2","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"dist":{"shasum":"ddcb1ba636b64bbe7534c57cbe535d9e3243ce8a","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.5.2.tgz","fileCount":65,"integrity":"sha512-CoTyQCERrzJQKkPqMBg2+6gTBt0ZfF28hzzHxRQG5xLnZfIlhd91IPPsYPzk5LWDi9vkAk6NVwZJmGjDYt2iAg==","signatures":[{"sig":"MEYCIQD0AZDrVh9deJ0IKwrhokJxy6U1PuLLbu1N4ilR7J/cqwIhAPTTBqAd7R4DmO7I8nfKixg5JCOwrudf9jDM6/miOb86","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.5.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":178007},"type":"module","exports":{"./experimental/errors":"./dist/errors/index.js","./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"5a4564f19290c5680ce7aeff7b4f0b3cf9d4227f","imports":{"#utils":"./src/utils/index.ts","#utils/test":"./src/utils/test/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.12.1","description":"OpenTelemetry browser instrumentations.","directories":{},"_nodeVersion":"24.15.0","dependencies":{"web-vitals":"^5.2.0","@opentelemetry/core":"^2.7.1","@opentelemetry/api-logs":"^0.218.0","@opentelemetry/instrumentation":"^0.218.0","@opentelemetry/semantic-conventions":"^1.41.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opentelemetry/sdk-logs":"0.218.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.1"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.5.2_1779167191506_0.21791751898228306","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@opentelemetry/browser-instrumentation","version":"0.6.0","keywords":["opentelemetry","browser","web","instrumentation","console","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.6.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"dist":{"shasum":"e1a3507d66a389795972469a7391dcdf72603e76","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.6.0.tgz","fileCount":65,"integrity":"sha512-ZYi3WaiCix1D8K6SY5y+i9zvo0lWsnd/tKKnk5PaqWLLxUhVl0gud8G79RJZ3NApDZvQ57PAvNC7povMHIj7jw==","signatures":[{"sig":"MEYCIQCRS0gvLWXZgRdkgEO43a2aUPgDvISU6aq+wRn8DsJyngIhANUSjTgeXiOHs0KUXZMMWjvyf5gcONa8RdjcQY/C9j+X","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":180865},"type":"module","exports":{"./experimental/errors":"./dist/errors/index.js","./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"43c61f44499ea09090e5737bd30ef193c9c9a76b","imports":{"#utils":"./src/utils/index.ts","#utils/test":"./src/utils/test/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.16.0","description":"OpenTelemetry browser instrumentations.","directories":{},"sideEffects":false,"_nodeVersion":"26.3.0","dependencies":{"web-vitals":"^5.3.0","@opentelemetry/core":"^2.9.0","@opentelemetry/api-logs":"^0.220.0","@opentelemetry/instrumentation":"^0.220.0","@opentelemetry/semantic-conventions":"^1.43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opentelemetry/sdk-logs":"0.220.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.1"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.6.0_1783964674470_0.9318353371393342","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@opentelemetry/browser-instrumentation","version":"0.7.0","keywords":["opentelemetry","browser","web","instrumentation","console","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.7.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"dist":{"shasum":"0d91cf8c925c10fa6a58c2c9febfc0f2e1f0be8d","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.7.0.tgz","fileCount":65,"integrity":"sha512-kzsEU5CmB4bFAga42MMZ8Hjc9c6v4LAy0dBW67hKtyM9qSmzwUfvqhGYl351ywoKdUWF0COphrICfFm8ClU3uA==","signatures":[{"sig":"MEUCIEyPhtqrqKLYIOkVK8phw8KYz9HN9mbvz5GXazdt0OfdAiEAr3iFJkh4m9681a5MfpIOFYSIUcAtrTtKFUZXtGuD+Po=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":183139},"type":"module","exports":{"./experimental/errors":"./dist/errors/index.js","./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"9e65ab172ad6d4ecf98bb9159e88e7c6ed050b6c","imports":{"#utils":"./src/utils/index.ts","#utils/test":"./src/utils/test/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.16.0","description":"OpenTelemetry browser instrumentations.","directories":{},"sideEffects":false,"_nodeVersion":"26.3.0","dependencies":{"web-vitals":"^5.3.0","@opentelemetry/core":"^2.10.0","@opentelemetry/api-logs":"^0.221.0","@opentelemetry/instrumentation":"^0.221.0","@opentelemetry/semantic-conventions":"^1.43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opentelemetry/sdk-logs":"0.221.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.1"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.7.0_1785432011870_0.6094838299934948","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"name":"@opentelemetry/browser-instrumentation","version":"0.8.0","keywords":["opentelemetry","browser","web","instrumentation","console","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals","fetch","xhr"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.8.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"dist":{"shasum":"e7eb7debc5c9409f0518a115b69f3705526b7608","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.8.0.tgz","fileCount":89,"integrity":"sha512-+yDkGl5+2sWLyzWhf3kDS4YwJRIEJ67s7hYuC4nv8AavQmwZoK6LDZ7EabT+rhGAUxny4EC7SRAWqk6epGq+Lw==","signatures":[{"sig":"MEQCIFUDR7DdWxSavzQHX2kE7yyg+Zi5o4UBn+oV8ysO7VBEAiAxSC32FiWL4FqFNc/tH3daWZM769bNZOcX7IxHo6pMyA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.8.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":277599},"type":"module","exports":{"./experimental/xhr":"./dist/xhr/index.js","./experimental/fetch":"./dist/fetch/index.js","./experimental/errors":"./dist/errors/index.js","./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"6acede8f474c15056f24d9f979375ac7279c152a","imports":{"#utils":"./src/utils/index.ts","#utils/test":"./src/utils/test/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.16.0","description":"OpenTelemetry browser instrumentations.","directories":{},"sideEffects":false,"_nodeVersion":"26.3.0","dependencies":{"web-vitals":"^6.1.1","@opentelemetry/api-logs":"^0.221.0","@opentelemetry/instrumentation":"^0.221.0","@opentelemetry/semantic-conventions":"^1.43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"msw":"2.15.0","@opentelemetry/core":"2.10.0","@opentelemetry/sdk-logs":"0.221.0","@opentelemetry/propagator-b3":"2.10.0","@opentelemetry/sdk-trace-base":"2.10.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.1"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.8.0_1787863105950_0.024729334905763567","host":"s3://npm-registry-packages-npm-production"}},"0.8.1":{"name":"@opentelemetry/browser-instrumentation","version":"0.8.1","keywords":["opentelemetry","browser","web","instrumentation","console","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals","fetch","xhr"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.8.1","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"msw":{"workerDirectory":["public"]},"dist":{"shasum":"cfdabd8f352d94d6adfa26569c032618ceab669c","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.8.1.tgz","fileCount":89,"integrity":"sha512-2NY7s+O6cFxz9kvxD9IiyVRTSODmTvlzGFJCNLWkTPDR/jopY/WFf3QE6/nnTKFiDSzMjdOL8f1VdcRWvuIfAA==","signatures":[{"sig":"MEYCIQCk9dEUGO6P3FltCRK30sbCG3DEY4RHHOE5pBbSaEQuigIhALwU3+CgYF1s1Bpjwuw29yoF55Nntc7YoHPeH65GH/XB","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.8.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":276930},"type":"module","exports":{"./experimental/xhr":"./dist/xhr/index.js","./experimental/fetch":"./dist/fetch/index.js","./experimental/errors":"./dist/errors/index.js","./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"634524e285bd977b5efe06b7dd78b4b23e14ec9d","imports":{"#utils":"./src/utils/index.ts","#utils/test":"./src/utils/test/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","msw:init":"msw init public --save","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.16.0","description":"OpenTelemetry browser instrumentations.","directories":{},"sideEffects":false,"_nodeVersion":"26.3.0","dependencies":{"web-vitals":"^6.2.1","@opentelemetry/api-logs":"^0.222.0","@opentelemetry/instrumentation":"^0.222.0","@opentelemetry/semantic-conventions":"^1.43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"msw":"2.15.0","@opentelemetry/core":"2.11.0","@opentelemetry/sdk-logs":"0.222.0","@opentelemetry/propagator-b3":"2.11.0","@opentelemetry/sdk-trace-base":"2.11.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.1"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.8.1_1788935401365_0.3573671087712884","host":"s3://npm-registry-packages-npm-production"}},"0.8.2":{"name":"@opentelemetry/browser-instrumentation","version":"0.8.2","keywords":["opentelemetry","browser","web","instrumentation","console","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals","fetch","xhr"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.8.2","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"msw":{"workerDirectory":["public"]},"dist":{"shasum":"15cc75814814e6d73b970e205dbc0ca74b15b9f8","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.8.2.tgz","fileCount":89,"integrity":"sha512-tHgtfNGSM3n1LIJnfg9Y9WAaec1yRqbb5JIEAZ8BYrUYXJo69rzRyLVQf9rzQIJbRV/AQAhlk/8qls2hmJ9Hfg==","signatures":[{"sig":"MEUCIE9ZHSO8Gk4JN/qHVawvoOuRO+4wR1QwsyfE/ClqKEThAiEAp1dzEB9TaZYiwZ2fpLqi3wbPvqSI9V8m0UbaoYPZLrs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCI2h9T+OBlSbPI2ccWzqSiaundZyX2H/GAdNiRKLctywIhAJGD1spqwq95nq6mKH0KJMDw8uAI6Jjqu0NabTUuiGzy","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.8.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":277348},"type":"module","exports":{"./experimental/xhr":"./dist/xhr/index.js","./experimental/fetch":"./dist/fetch/index.js","./experimental/errors":"./dist/errors/index.js","./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"7a72c7a5703ac17895c08e74a1cd8d5e276d9d5f","imports":{"#utils":"./src/utils/index.ts","#utils/test":"./src/utils/test/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","msw:init":"msw init","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.16.0","description":"OpenTelemetry browser instrumentations.","directories":{},"sideEffects":false,"_nodeVersion":"26.3.0","dependencies":{"web-vitals":"^6.2.2","@opentelemetry/api-logs":"^0.223.0","@opentelemetry/instrumentation":"^0.223.0","@opentelemetry/semantic-conventions":"^1.43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"msw":"3.0.1","@opentelemetry/core":"2.12.0","@opentelemetry/sdk-logs":"0.223.0","@opentelemetry/propagator-b3":"2.12.0","@opentelemetry/sdk-trace-base":"2.12.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.1"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.8.2_1791619248604_0.10162472819990853","host":"s3://npm-registry-packages-npm-production"}},"0.9.0":{"name":"@opentelemetry/browser-instrumentation","version":"0.9.0","keywords":["opentelemetry","browser","web","instrumentation","console","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals","fetch","xhr"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.9.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"msw":{"workerDirectory":["public"]},"dist":{"shasum":"158069fbee5feff2f2c56729c6bfa9a48e584aaf","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.9.0.tgz","fileCount":89,"integrity":"sha512-hpa3QICqbl0tdy1ZgyA9eyfpf+75DXL6ACWMcQ41nYRt0m+z2pHfC9mlGiTn9thsKeM9Zr9H+NlUpGKEkyrb6g==","signatures":[{"sig":"MEYCIQDzyYs/tOh/YyJocv20FMHYWbTWfSejL+NjJpEDxvKX1gIhAMseYFpvSK2JC89hCMLLrjAmfXebuRioo9Zzfz6TPBhe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIFnmr/ETgG8RXQpuEGH0aMZl+2msfE9mtJguvADvOy80AiBg8zokcI7z1vbPU+i39PmG4nUDXFhV1HznN9l5iBnvuw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.9.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":280665},"type":"module","exports":{"./experimental/xhr":"./dist/xhr/index.js","./experimental/fetch":"./dist/fetch/index.js","./experimental/errors":"./dist/errors/index.js","./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"bbb362fddcacd6519f793703da67069f28300774","imports":{"#utils":"./src/utils/index.ts","#utils/test":"./src/utils/test/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","msw:init":"msw init","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.16.0","description":"OpenTelemetry browser instrumentations.","directories":{},"sideEffects":false,"_nodeVersion":"26.3.0","dependencies":{"web-vitals":"^6.2.3","@opentelemetry/api-logs":"^0.223.0","@opentelemetry/instrumentation":"^0.223.0","@opentelemetry/semantic-conventions":"^1.43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"msw":"3.0.3","@opentelemetry/core":"2.12.0","@opentelemetry/sdk-logs":"0.223.0","@opentelemetry/sdk-trace":"2.12.0","@opentelemetry/propagator-b3":"2.12.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.1"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.9.0_1792687662181_0.4138071009057136","host":"s3://npm-registry-packages-npm-production"}},"0.11.0":{"name":"@opentelemetry/browser-instrumentation","version":"0.11.0","keywords":["opentelemetry","browser","web","instrumentation","console","element-timing","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals","fetch","xhr"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/browser-instrumentation@0.11.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-browser","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"msw":{"workerDirectory":["public"]},"dist":{"shasum":"c46b715b59a1a3be036a0f7f3be07f04dd6cae61","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.11.0.tgz","fileCount":97,"integrity":"sha512-9brrVpA5YQ8k2O2Bq5GwZR2yQ/RXlRzvFUVCJhuBFR4TdAnRRlSP9b6/G7Qv5aXUKjK7EN9PiHPUWteCj3F3SQ==","signatures":[{"sig":"MEUCIQDFMPvUzf/w4naML5wBPTtV4LG5Zcg0/W/H39BdZ4LvkgIgGrBAinemrSyOIFX6eNgyaWLq6ConMorcsP/OuftJlOA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIETW3bL63CUhln8yCJbMBkJPFyuU467STMxWoJVFVod7AiApKiq1QtiYYcjNoQ0WkPemttgn0XhPV7fcHtpQuH01iw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.11.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":319606},"type":"module","exports":{"./experimental/xhr":"./dist/xhr/index.js","./experimental/fetch":"./dist/fetch/index.js","./experimental/errors":"./dist/errors/index.js","./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/element-timing":"./dist/element-timing/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js"},"gitHead":"05debbf94db36d9db2c7954cb595308c81b3cc85","imports":{"#utils":"./src/utils/index.ts","#utils/test":"./src/utils/test/index.ts"},"scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","msw:init":"msw init","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"64511c04-d2cc-471b-9e90-24e588bd8769"}},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.20.0","description":"OpenTelemetry browser instrumentations.","directories":{},"sideEffects":false,"_nodeVersion":"26.12.1","dependencies":{"web-vitals":"^6.2.3","@opentelemetry/api-logs":"^0.223.0","@opentelemetry/browser-api":"^0.1.0","@opentelemetry/semantic-conventions":"^1.43.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"msw":"3.0.4","@opentelemetry/core":"2.12.0","@opentelemetry/sdk-logs":"0.223.0","@opentelemetry/sdk-trace":"2.12.0","@opentelemetry/propagator-b3":"2.12.0"},"peerDependencies":{"@opentelemetry/api":"^1.9.1"},"_npmOperationalInternal":{"tmp":"tmp/browser-instrumentation_0.11.0_1794358286233_0.06646714487071348","host":"s3://npm-registry-packages-npm-production"}},"0.12.1":{"_id":"@opentelemetry/browser-instrumentation@0.12.1","msw":{"workerDirectory":["public"]},"bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"dist":{"shasum":"8b199add70ac8619c233da868d211c6b45da6cce","tarball":"https://registry.npmjs.org/@opentelemetry/browser-instrumentation/-/browser-instrumentation-0.12.1.tgz","fileCount":111,"integrity":"sha512-WCxAc4IXcy8fSzauxWQQfHrvPxq4QqGEcXgPTTzk77ll+8nEi1pLLCnLSA+QiFgkEs/TXPJkm8gAZC+y5UGuJQ==","signatures":[{"sig":"MEQCIAiAw/nrhX6DxKi78lV2kR0gudEj0De4LQ81pAk0lIG8AiBP8LmEVDiZEnSV8kApnmEmzJW1I2yodK+CPwov6e/ipw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC33OVdjSr9/wLnjBoM6ycQrW5J7kyjntF5a6BqDFdlxgIgAscDnR0pLHExEo7z9FEVuh8CEHyT28LzeZiH4T1PlAk="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fbrowser-instrumentation@0.12.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":368888},"name":"@opentelemetry/browser-instrumentation","type":"module","author":{"name":"OpenTelemetry Authors"},"exports":{"./experimental/xhr":"./dist/xhr/index.js","./experimental/fetch":"./dist/fetch/index.js","./experimental/errors":"./dist/errors/index.js","./experimental/console":"./dist/console/index.js","./experimental/navigation":"./dist/navigation/index.js","./experimental/web-vitals":"./dist/web-vitals/index.js","./experimental/user-action":"./dist/user-action/index.js","./experimental/document-load":"./dist/document-load/index.js","./experimental/element-timing":"./dist/element-timing/index.js","./experimental/resource-timing":"./dist/resource-timing/index.js","./experimental/navigation-timing":"./dist/navigation-timing/index.js","./experimental/long-animation-frame":"./dist/long-animation-frame/index.js"},"gitHead":"ae3167405d0a0d01f7c556dfc6b0eec61bd19859","imports":{"#utils":"./src/utils/index.ts","#utils/test":"./src/utils/test/index.ts"},"license":"Apache-2.0","scripts":{"test":"vitest run","build":"tsdown","watch":"tsdown --watch --no-clean","msw:init":"msw init","test:watch":"vitest","check-types":"tsc","test:coverage":"vitest --coverage"},"version":"0.12.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"64511c04-d2cc-471b-9e90-24e588bd8769"}},"homepage":"https://github.com/open-telemetry/opentelemetry-browser","keywords":["opentelemetry","browser","web","instrumentation","console","element-timing","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals","fetch","xhr","document-load","long-animation-frame"],"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"_npmVersion":"11.20.0","description":"OpenTelemetry browser instrumentations.","directories":{},"maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"sideEffects":false,"_nodeVersion":"26.12.1","dependencies":{"web-vitals":"^6.2.3","@opentelemetry/browser-api":"^0.2.1","@opentelemetry/semantic-conventions":"^1.45.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"msw":"3.0.4","@opentelemetry/core":"3.1.1","@opentelemetry/sdk-logs":"3.1.1","@opentelemetry/sdk-trace":"3.1.1","@opentelemetry/propagator-b3":"3.1.1"},"peerDependencies":{"@opentelemetry/api":">=1.10.0 <1.11.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/browser-instrumentation_0.12.1_1794911602507_0.9700436259914071"}}},"time":{"created":"2026-03-12T17:12:25.904Z","modified":"2026-11-17T10:33:23.211Z","0.1.0":"2026-03-12T17:12:26.159Z","0.2.0":"2026-03-19T18:23:24.015Z","0.3.0":"2026-04-24T01:31:02.447Z","0.4.0":"2026-04-30T20:53:09.897Z","0.5.0":"2026-05-07T21:45:50.191Z","0.5.1":"2026-05-12T21:50:27.972Z","0.5.2":"2026-05-19T05:06:31.659Z","0.6.0":"2026-07-13T17:44:34.626Z","0.7.0":"2026-07-30T17:20:12.037Z","0.8.0":"2026-08-27T20:38:26.081Z","0.8.1":"2026-09-09T06:30:01.511Z","0.8.2":"2026-10-10T08:00:48.698Z","0.9.0":"2026-10-22T16:47:42.286Z","0.11.0":"2026-11-11T00:51:26.337Z","0.12.1":"2026-11-17T10:33:22.657Z"},"bugs":{"url":"https://github.com/open-telemetry/opentelemetry-browser/issues"},"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","homepage":"https://github.com/open-telemetry/opentelemetry-browser","keywords":["opentelemetry","browser","web","instrumentation","console","element-timing","errors","navigation","navigation-timing","resource-timing","user-action","web-vitals","fetch","xhr","document-load","long-animation-frame"],"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-browser.git","type":"git","directory":"packages/instrumentation"},"description":"OpenTelemetry browser instrumentations.","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"},{"name":"overbalance","email":"overbalancedev@proton.me"},{"name":"npmjs-account","email":"npmjs-account@opentelemetry.io"},{"name":"trentm","email":"trentm@gmail.com"},{"name":"martinkuba","email":"martin@martinkuba.com"}],"readme":"# @opentelemetry/browser-instrumentation\n\n[![NPM Published Version][npm-img]][npm-url]\n[![Apache License][license-image]][license-image]\n\n**Note: This is an experimental package under active development. New releases\nmay include breaking changes. See [VERSIONING.md](../../VERSIONING.md).**\n\nOpenTelemetry browser instrumentations, available as subpath exports under\n`./experimental/*`.\n\nMoving from `opentelemetry-js` or `opentelemetry-js-contrib`? See the\n[migration guide](../../docs/migration-guide.md) for import paths, behavior\nchanges, and remaining gaps.\n\n## Installation\n\n```bash\nnpm install @opentelemetry/browser-instrumentation\n```\n\n`@opentelemetry/api` is a **peer dependency** and **1.10.x is required**\n(`>=1.10.0 <1.11.0`): the instrumentations import the `logs` API from\n`@opentelemetry/api` at runtime, so an application still on 1.9.x fails to\nbundle with a missing export.\n\n## Instrumentations\n\n- [Navigation](#navigation) — automatic instrumentation for browser navigations\n  (initial load and SPA route changes)\n- [Document Load](#document-load) — one document load span\n- [Navigation Timing](#navigation-timing) — automatic instrumentation for\n  navigation timing\n- [Resource Timing](#resource-timing) — automatic instrumentation for resource\n  timing\n- [Element Timing](#element-timing) — automatic instrumentation for paint timing\n  of annotated elements\n- [User Action](#user-action) — automatic instrumentation for user actions\n  (clicks)\n- [Web Vitals](#web-vitals) — automatic instrumentation for Core Web Vitals\n- [Long Animation Frames](#long-animation-frames) — automatic instrumentation\n  for Long Animation Frames (jank, and the scripts behind a slow interaction)\n- [Console](#console) — automatic instrumentation for console API calls (log,\n  warn, error, info, debug)\n- [Errors](#errors) — automatic instrumentation for unhandled errors and promise\n  rejections\n- [Fetch](#fetch) — automatic instrumentation for request using the `fetch` API\n\n## Usage\n\nThe easiest way to use these instrumentations is the [Browser SDK](../sdk). Pass\nthem to `startBrowserSdk()` and the SDK enables them with its own providers.\n\nYou can also enable them yourself. Call `enable()` on each one:\n\n```typescript\nimport { logs } from '@opentelemetry/api';\nimport {\n  ConsoleLogRecordExporter,\n  LoggerProvider,\n  SimpleLogRecordProcessor,\n} from '@opentelemetry/sdk-logs';\nimport { ErrorsInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/errors';\nimport { NavigationInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/navigation';\nimport { NavigationTimingInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/navigation-timing';\nimport { ResourceTimingInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/resource-timing';\nimport { UserActionInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/user-action';\nimport { WebVitalsInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/web-vitals';\n\nconst loggerProvider = new LoggerProvider({\n  processors: [\n    new SimpleLogRecordProcessor({ exporter: new ConsoleLogRecordExporter() }),\n  ],\n});\nlogs.setGlobalLoggerProvider(loggerProvider);\n\nconst instrumentations = [\n  new ErrorsInstrumentation(),\n  new NavigationInstrumentation(),\n  new NavigationTimingInstrumentation(),\n  new ResourceTimingInstrumentation(),\n  new UserActionInstrumentation(),\n  new WebVitalsInstrumentation(),\n];\nfor (const instrumentation of instrumentations) {\n  instrumentation.enable();\n}\n```\n\n---\n\n### Navigation\n\n```typescript\nimport { NavigationInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/navigation';\n```\n\nEmits a `browser.navigation` event for the initial page load (hard navigation)\nand for subsequent in-page navigations (soft navigations), including\n`history.pushState`, `history.replaceState`, `popstate`, and hash changes. When\nenabled via config, the\n[Navigation API](https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API)\nis used in preference to patching `history`.\n\n#### Configuration\n\n```typescript\nimport {\n  NavigationInstrumentation,\n  defaultSanitizeUrl,\n} from '@opentelemetry/browser-instrumentation/experimental/navigation';\n\nnew NavigationInstrumentation({\n  // Use window.navigation (Navigation API) when available instead of\n  // patching history.pushState / history.replaceState. Default: false.\n  useNavigationApiIfAvailable: true,\n\n  // Rewrite the captured URL before it is emitted. Useful for stripping\n  // path segments, query parameters, or tokens that should not be exported.\n  sanitizeUrl: (url) => defaultSanitizeUrl(url),\n\n  // [Deprecated] Mutate the log record before it is emitted.\n  // Prefer using a custom LogRecordProcessor registered with LoggerProvider.\n  applyCustomLogRecordData: (logRecord) => {\n    logRecord.attributes = {\n      ...logRecord.attributes,\n      'app.route.id': '...',\n    };\n  },\n});\n```\n\n| Option                        | Type                             | Default | Description                                                                                                                                                                                                                                                     |\n| ----------------------------- | -------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `useNavigationApiIfAvailable` | `boolean`                        | `false` | When `true`, subscribes to the Navigation API (`currententrychange`) instead of patching `history.pushState` / `history.replaceState`. Falls back to history patching when the Navigation API is unavailable. The choice is made once, at the first `enable()`. |\n| `sanitizeUrl`                 | `(url: string) => string`        | —       | Called before the URL is written to `url.full`.                                                                                                                                                                                                                 |\n| `applyCustomLogRecordData`    | `(logRecord: LogRecord) => void` | —       | **[Deprecated]** Hook to modify log records before they are emitted. Errors thrown from this hook are caught and logged via the instrumentation diag logger. Prefer using a custom `LogRecordProcessor` registered with `LoggerProvider`.                       |\n\n> **Note on Custom Attributes:** `applyCustomLogRecordData` is deprecated. To\n> enrich or mutate log records with custom attributes, register a custom\n> `LogRecordProcessor` with `LoggerProvider`:\n>\n> ```typescript\n> import type { LogRecordProcessor, ReadWriteLogRecord } from '@opentelemetry/sdk-logs';\n>\n> class CustomAttributesProcessor implements LogRecordProcessor {\n>   onEmit(logRecord: ReadWriteLogRecord) {\n>     logRecord.setAttribute('app.route.id', '...');\n>   }\n>   async forceFlush() {}\n>   async shutdown() {}\n> }\n> ```\n\n`defaultSanitizeUrl` is exported for composition — it redacts `user:password@`\ncredentials and a set of common sensitive query parameters (`api_key`, `token`,\n`password`, signed URL signatures, etc.).\n\n#### Captured Attributes\n\nEach `browser.navigation` event includes:\n\n| Attribute                          | Description                                                                               |\n| ---------------------------------- | ----------------------------------------------------------------------------------------- |\n| `url.full`                         | The destination URL (after `sanitizeUrl` if configured).                                  |\n| `browser.navigation.same_document` | `true` for SPA route changes; `false` for full-page loads.                                |\n| `browser.navigation.hash_change`   | `true` when the navigation only adds or changes the URL fragment.                         |\n| `browser.navigation.type`          | One of `push`, `replace`, `reload`, `traverse` (omitted for the initial hard navigation). |\n\n---\n\n### Document Load\n\n```typescript\nimport { DocumentLoadInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/document-load';\n```\n\nCreates one `documentLoad` span from the navigation entry's `fetchStart` to\n`loadEventEnd`, with the `url.full` attribute. Credentials and sensitive query\nvalues in `url.full` are redacted with `defaultSanitizeUrl`. The span starts a\nnew trace. Pass it to `startBrowserSdk()` and the SDK enables it with its tracer\nprovider:\n\n```typescript\nimport { startBrowserSdk } from '@opentelemetry/browser-sdk';\n\nconst sdk = startBrowserSdk({\n  instrumentations: [new DocumentLoadInstrumentation()],\n});\n```\n\nTo enable it yourself, pass the tracer provider to `enable()`:\n\n```typescript\nconst documentLoad = new DocumentLoadInstrumentation();\ndocumentLoad.enable({ tracerProvider });\n```\n\nEnabling after the page has loaded reads the buffered navigation entry and keeps\nits original interval. During load, collection waits until `loadEventEnd` is\npopulated. Missing or invalid navigation timing produces no span rather than a\nmade-up end time. Disabling cancels collection. Re-enabling an instance that\nalready collected the document does not emit a second span for that load.\n\nDetailed timings come from the navigation-timing and resource-timing\ninstrumentations, so there are no `documentFetch` or `resourceFetch` child spans\nor span events.\n\n---\n\n### Navigation Timing\n\n```typescript\nimport { NavigationTimingInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/navigation-timing';\n```\n\nProvides automatic instrumentation for\n[Navigation Timing](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming)\nin web applications.\n\n---\n\n### Resource Timing\n\n```typescript\nimport { ResourceTimingInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/resource-timing';\n```\n\nProvides automatic instrumentation for\n[Resource Timing](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming)\nin web applications, capturing performance metrics for all resources loaded by\nthe browser (scripts, stylesheets, images, fonts, XHR/fetch requests, etc.).\n\n- Uses `requestIdleCallback` to avoid blocking the main thread (with automatic\n  `setTimeout` fallback for Safari)\n- Processes resources in configurable batches\n- Captures historical resources loaded before instrumentation was enabled via\n  buffered mode\n- Flushes pending entries on visibility change to prevent data loss\n\n#### Configuration\n\n```typescript\nnew ResourceTimingInstrumentation({\n  // Process 100 resources per batch (default: 50)\n  batchSize: 100,\n\n  // Wait max 2 seconds for idle time before forcing processing (default: 1000)\n  forceProcessingAfter: 2000,\n\n  // Spend max 100ms processing per idle callback (default: 50)\n  maxProcessingTime: 100,\n\n  // Maximum queue size before forcing immediate flush (default: 1000)\n  maxQueueSize: 2000,\n});\n```\n\n| Option                 | Type     | Default | Description                                                               |\n| ---------------------- | -------- | ------- | ------------------------------------------------------------------------- |\n| `batchSize`            | `number` | `50`    | Number of resources to process per batch.                                 |\n| `forceProcessingAfter` | `number` | `1000`  | Maximum time (ms) to wait for an idle callback before forcing processing. |\n| `maxProcessingTime`    | `number` | `50`    | Maximum time (ms) to spend processing resources per idle callback.        |\n| `maxQueueSize`         | `number` | `1000`  | Maximum number of resources to queue before forcing immediate flush.      |\n\n#### Captured Data\n\nEach resource timing event includes:\n\n- **URL** and **Initiator Type** (script, css, img, xmlhttprequest, fetch, etc.)\n- **Duration** — total resource load time\n- **Timing Phases** — DNS lookup, TCP connection, TLS handshake, request,\n  response\n- **Size Metrics** — transfer size, encoded size, decoded size\n- **Protocol** — HTTP version (h1, h2, h3)\n- **Redirect Info** — redirect timing if applicable\n- **Service Worker** — worker start time if intercepted\n- **Render Blocking** — whether the resource blocked rendering (Chromium only)\n\n---\n\n### Element Timing\n\n```typescript\nimport { ElementTimingInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/element-timing';\n```\n\nEmits a `browser.element_timing` event for each element annotated with the\n[`elementtiming`](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceElementTiming)\nattribute, reporting when the browser painted it.\n\nOnly image elements and text-containing block elements are eligible, and the\nattribute must be present before the element is first painted:\n\n```html\n<img src=\"hero.jpg\" elementtiming=\"hero-image\">\n<p elementtiming=\"headline\">Welcome</p>\n```\n\nEntries recorded before the instrumentation was enabled are captured via\nbuffered mode. Element Timing is Chromium-only. On other browsers the\ninstrumentation stays disabled and logs a diag message.\n\n#### Captured Attributes\n\nEach `browser.element_timing` event includes:\n\n| Attribute                               | Description                                                                                                                        |\n| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |\n| `browser.element_timing.identifier`     | The `elementtiming` attribute value.                                                                                               |\n| `browser.element_timing.element`        | The lower-cased tag name (omitted when the element left the document before the entry was processed).                              |\n| `browser.element_timing.render_time`    | Paint time relative to navigation start. Cross-origin images without a `Timing-Allow-Origin` header report 0 or a coarsened value. |\n| `browser.element_timing.start_time`     | `render_time` when non-zero, otherwise `load_time`. Always present, so prefer this for charting.                                   |\n| `browser.element_timing.load_time`      | Resource load time relative to navigation start. Image elements only.                                                              |\n| `url.full`                              | The image resource URL. Image elements only.                                                                                       |\n| `browser.element_timing.natural_width`  | Intrinsic width in CSS pixels. Image elements only.                                                                                |\n| `browser.element_timing.natural_height` | Intrinsic height in CSS pixels. Image elements only.                                                                               |\n\n---\n\n### User Action\n\n```typescript\nimport { UserActionInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/user-action';\n```\n\nProvides automatic instrumentation for user actions in web applications.\n\nCompatible with OpenTelemetry JS API and SDK `1.0+`.\n\n#### Configuration\n\nBy default the instrumentation captures `click` events. Middle clicks are\ncaptured through `auxclick` and right clicks through `contextmenu`, since native\ncontext menus can consume the mouse release before `auxclick` fires. Only button\n2 context menus are recorded, so keyboard menu events are ignored. Right-button\n`auxclick` events are ignored to avoid duplicate records. You can configure\nwhich events to capture by passing an options object:\n\n```typescript\nnew UserActionInstrumentation({\n  // Array of actions to automatically capture. Default: ['click'].\n  autoCapturedActions: [],\n\n  // [Deprecated] Mutate the log record before it is emitted.\n  // Prefer using a custom LogRecordProcessor registered with LoggerProvider.\n  applyCustomLogRecordData: (logRecord) => {\n    logRecord.attributes = {\n      ...logRecord.attributes,\n      'app.user.role': 'admin',\n    };\n  },\n});\n```\n\n| Option                     | Type                             | Default     | Description                                                                                                                                                                                                                               |\n| -------------------------- | -------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `autoCapturedActions`      | `AutoCapturedUserAction[]`       | `['click']` | Array of actions to automatically capture.                                                                                                                                                                                                |\n| `applyCustomLogRecordData` | `(logRecord: LogRecord) => void` | —           | **[Deprecated]** Hook to modify log records before they are emitted. Errors thrown from this hook are caught and logged via the instrumentation diag logger. Prefer using a custom `LogRecordProcessor` registered with `LoggerProvider`. |\n\n#### Additional Attributes\n\nData attributes with the prefix `data-otel-` on the target element will be added\nas additional attributes to the generated log record. For example:\n\n```html\n<button id=\"btn1\" data-otel-user-id=\"12345\" data-otel-feature=\"signup\">\n  Sign Up\n</button>\n```\n\n---\n\n### Web Vitals\n\n```typescript\nimport { WebVitalsInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/web-vitals';\n```\n\nProvides automatic instrumentation for\n[Core Web Vitals](https://web.dev/vitals/) using the\n[`web-vitals`](https://github.com/GoogleChrome/web-vitals) library.\n\n#### Configuration\n\n| Option                     | Type                             | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |\n| -------------------------- | -------------------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `includeRawAttribution`    | `boolean`                        | `false` | When true, sets the log record body to the JSON-stringified `web-vitals` attribution object.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |\n| `applyCustomLogRecordData` | `(logRecord: LogRecord) => void` | —       | **[Deprecated]** Hook to modify log records before they are emitted. Prefer using a custom `LogRecordProcessor` registered with `LoggerProvider`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |\n| `reportAllChanges`         | `boolean`                        | `false` | When true, CLS, INP and LCP are reported each time their value changes, not only when the value is final. FCP and TTFB are not affected. `delta` is the change since the previous report for the same metric `id`.`web-vitals` [recommends](https://github.com/GoogleChrome/web-vitals#report-the-value-on-every-change) this for debugging, not for production.                                                                                                                                                                                                                                                                                                                                                                                                                                                  |\n| `reportSoftNavs`           | `boolean`                        | `false` | When true, metrics are reported again after each soft navigation (a route change in a single-page app). CLS and INP start again from zero. FCP and LCP are the paints after the soft navigation. TTFB is not reported for soft navigations. Metrics for the first page are final at the first soft navigation, so its CLS and INP can be lower than without this option. Adds `browser.web_vital.navigation_url`. Use it to group metrics by route, because a metric can be reported after the URL has changed. `browser.web_vital.navigation_id` is added when the browser exposes a navigation id, with or without this option. Requires Chromium 151 or later. Other browsers ignore this option. See the [`web-vitals` docs](https://github.com/GoogleChrome/web-vitals#report-metrics-for-soft-navigations). |\n| `sanitizeUrl`              | `(url: string) => string`        | —       | Called before the URL is written to `browser.web_vital.navigation_url`.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |\n\n---\n\n### Long Animation Frames\n\n```typescript\nimport { LongAnimationFrameInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/long-animation-frame';\n```\n\nEmits a `browser.long_animation_frame` event for every\n[Long Animation Frames API](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceLongAnimationFrameTiming)\nentry. The API is not Baseline and is currently unavailable in Firefox and\nSafari, and it reports a frame only once it exceeds the 50 ms long-frame\nthreshold, so this instrumentation stays silent on pages that are already\nresponsive.\n\nThe [sandbox](../../sandbox) has a **Long Frame** button that blocks the main\nthread past that threshold, so an entry can be generated on demand while\nreviewing or QAing a change locally.\n\n#### Configuration\n\n```typescript\nimport { LongAnimationFrameInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/long-animation-frame';\n\nnew LongAnimationFrameInstrumentation({\n  // Optional. Defaults to `defaultSanitizeUrl`, which redacts\n  // `user:password@` credentials and common sensitive query parameters\n  // (`api_key`, `token`, `password`, ...). Pass `undefined` to emit the\n  // URL-bearing fields exactly as the browser reports them.\n  sanitizeUrl: (url) => url.replace(/\\/users\\/\\d+/, '/users/:id'),\n});\n```\n\n| Option        | Type                      | Default              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |\n| ------------- | ------------------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `sanitizeUrl` | `(url: string) => string` | `defaultSanitizeUrl` | Called before a URL-bearing field of a `scripts` entry is written: `source_url`, and `invoker` for a `classic-script` or `module-script` entry, where the spec defines it as the invoking script's source URL. For an inline script that URL is the page URL including its query string, so a `token` in it would otherwise be exported here even when `url.full` is sanitized elsewhere. Values that are not URLs — the `DOMWindow.onclick` style `invoker` of an `event-listener` entry, an unresolved `source_url` — are written unchanged and never passed to the function, so a sanitizer that parses its argument (`new URL(url)`) is safe to pass. Unlike `url.full` for navigation, fetch and xhr, this is on by default, because the value sits inside the `scripts` array where a page token is easy to miss. |\n\n#### Captured Attributes\n\n| Attribute                                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |\n| ------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `browser.long_animation_frame.start_time`               | Start of the frame, in milliseconds relative to the time origin. Same clock as `render_start`, `style_and_layout_start` and `first_ui_event_timestamp`; the record timestamp is this value plus `performance.timeOrigin`.                                                                                                                                                                                                                                                                                                                     |\n| `browser.long_animation_frame.duration`                 | Total duration of the frame, in milliseconds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |\n| `browser.long_animation_frame.blocking_duration`        | Time the main thread was blocked from responding to high-priority tasks, in milliseconds: the sum, over the tasks in the frame that ran longer than 50 ms, of each task's duration minus 50 ms, with the rendering time added to the longest of them. It is not the frame's total duration and it is not split across the `scripts` entries — scripts carry `duration` and `forced_style_and_layout_duration` instead. See [the spec](https://w3c.github.io/long-animation-frames/#dom-performancelonganimationframetiming-blockingduration). |\n| `browser.long_animation_frame.render_start`             | Start of the rendering cycle, in milliseconds relative to the time origin. Omitted when the frame did not render — the spec's getter returns `0` for \"no value\", which would otherwise be exported as a real time at the time origin.                                                                                                                                                                                                                                                                                                         |\n| `browser.long_animation_frame.style_and_layout_start`   | Start of the style and layout cycle, in milliseconds relative to the time origin. Omitted when the frame had no style and layout cycle, for the same reason.                                                                                                                                                                                                                                                                                                                                                                                  |\n| `browser.long_animation_frame.first_ui_event_timestamp` | Time of the first UI event processed during the frame, in milliseconds relative to the time origin. Omitted when no UI event was processed in the frame, which is the common case for frames not caused by an interaction.                                                                                                                                                                                                                                                                                                                    |\n| `browser.long_animation_frame.scripts`                  | Script timing entries attributed to the frame: `start_time`, `duration`, `execution_start`, `invoker`, `invoker_type`, `source_url`, `source_function_name`, `source_char_position`, `pause_duration`, `forced_style_and_layout_duration`, `window_attribution`. `invoker` and `source_url` are passed through `sanitizeUrl` when they are URLs; see Configuration.                                                                                                                                                                           |\n\nEvery entry is named `long-animation-frame` and every script entry is named\n`script` by the spec, so neither name is repeated as an attribute: the event\nname already says what the record is.\n\n#### Buffered replay and volume\n\nThe instrumentation observes with `buffered: true`, so frames the browser\nretained from before it started are emitted once, on the first `enable()`. A\nlater `disable()` / `enable()` cycle resumes live observation and does not\nre-emit frames that were already logged.\n\nNo client-side throttle is applied. The performance timeline buffer keeps the\nfirst ~200 entries and leaves out the newer ones once it is full\n(`droppedEntriesCount` goes up), so it only bounds the buffered replay above; a\nlive observer still receives every frame. A throttle would drop the worst frames\nfirst: a jank burst that produces dozens of entries would be reported as one,\nwhich improves the downstream p95 while the page gets worse. If a hard ceiling\nis ever needed, prefer accounting over sampling — a per-callback cap plus a\ndropped count on the following record so the loss stays visible, or the batching\nshape [Resource Timing](#resource-timing) already uses (`batchSize`,\n`maxQueueSize`, `forceProcessingAfter`, drained on an idle callback).\n\n#### Correlating frames with interactions\n\n`first_ui_event_timestamp` is a `DOMHighResTimeStamp` on the same clock as\n`Event.timeStamp`, so a frame can be related to the interaction that triggered\nit without any context plumbing. The `scripts` array then names the culprit:\n`invoker` (for example `DOMWindow.onclick`), `invoker_type` (`event-listener`),\n`source_url`, `source_function_name`, `source_char_position`, and\n`forced_style_and_layout_duration` (the time that script spent forcing style and\nlayout).\n\nDo not join the two by equality. `first_ui_event_timestamp` is the `timeStamp`\nof the first UI event whose listener ran in that frame — any UI event — while a\nweb-vitals INP record's `attribution.interactionTime` is the start of the\ninteraction's first event entry. The two only line up when the frame happened to\nhandle that first event before anything else, and a slow interaction can overlap\nmore than one frame (the frame that delayed the input and the frame that ran the\nhandlers), of which at most one can match.\n\nThe INP side of the join is already done by [Web Vitals](#web-vitals): with\n`includeRawAttribution` enabled, every frame that overlaps the interaction is in\nthe record body as `attribution.longAnimationFrameEntries`, scripts included, so\nread them from there. For any other correlation, match by overlap — a frame\noverlaps the interaction when its `start_time` precedes the interaction end and\nits `start_time + duration` follows the interaction start, both of which are on\nthe frame record as attributes — rather than by an exact timestamp comparison.\nINP says which interaction was slow; Long Animation Frames say which script made\nit slow.\n\n#### Page attribution\n\n`browser.document.url.full` is stamped by `createDocumentLogRecordProcessor` and\n`createDocumentSpanProcessor`, and `LocationDocumentProvider` reads\n`location.href` at emit time, so soft navigations are reflected without extra\nbookkeeping. The URL is therefore the one current when the record is built, not\nnecessarily the one the frame happened on, and the two differ more often than\nthe replay caveat above suggests: the observer callback runs after the frame has\nfinished, so a handler that blocks for 100 ms and then calls `history.pushState`\nis reported with the new pathname — often exactly the frame a reviewer wants to\nplace. The buffered replay broadens it further, since those frames carry the URL\ncurrent when they are emitted rather than the URL they happened on, so the first\nrecords of a session can be mislabelled on a page that navigates early. The\nframe's own timing is unaffected — `start_time` and the record timestamp\ndescribe the frame, not the URL, and the record timestamp is\n`performance.timeOrigin + start_time` — which is what the overlap match above\nuses.\n\n### Console\n\n```typescript\nimport { ConsoleInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/console';\n```\n\nProvides automatic instrumentation for browser console API calls. By default\ncaptures `log`, `warn`, `error`, `info`, and `debug` methods.\n\n#### Configuration\n\n```typescript\nnew ConsoleInstrumentation({\n  // Specify which console methods to capture (default: log, warn, error, info, debug)\n  logMethods: ['error', 'warn'],\n});\n```\n#### Captured Attributes\n\nEach `browser.console` event includes the following attributes:\n\n| Attribute                | Description                        | Example                                 |\n| ------------------------ | ---------------------------------- | --------------------------------------- |\n| `browser.console.method` | The console method that was called | `error`, `warn`, `log`, `info`, `debug` |\n\n---\n\n### Errors\n\n```typescript\nimport { ErrorsInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/errors';\n```\n\nEmits an `exception` event for every uncaught error\n(`window.addEventListener('error', ...)`) and unhandled promise rejection\n(`window.addEventListener('unhandledrejection', ...)`).\n\n#### Configuration\n\n```typescript\nnew ErrorsInstrumentation({\n  // Return extra attributes to attach to the emitted log record.\n  applyCustomAttributes: (error) => ({\n    'app.error.severity':\n      error instanceof Error && error.name === 'ValidationError'\n        ? 'warning'\n        : 'error',\n  }),\n});\n```\n\n| Option                  | Type                                     | Default | Description                                                                                                                                            |\n| ----------------------- | ---------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `applyCustomAttributes` | `(error: Error \\| string) => Attributes` | —       | Returns extra attributes to merge onto the emitted log record. Errors thrown from this hook are caught and logged via the instrumentation diag logger. |\n\n#### Captured Attributes\n\nEach `exception` event includes:\n\n| Attribute              | Description                                                      |\n| ---------------------- | ---------------------------------------------------------------- |\n| `exception.type`       | The error's `name` (omitted when the thrown value is a string).  |\n| `exception.message`    | The error's `message`, or the thrown string itself.              |\n| `exception.stacktrace` | The error's `stack` (omitted when the thrown value is a string). |\n\n---\n\n### Fetch\n\n```typescript\nimport { FetchInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/fetch';\n```\n\nEmits a Span for every HTTP request made using the `window.fetch` browser API.\nThis instrumentation also propagates the context for distributed traces.\n\n#### Configuration\n\n```typescript\nnew FetchInstrumentation({\n  ignoreUrls: ['https://example.com/api'],\n  propagateTraceHeaderCorsUrls: [/domain.com\\/api.*/],\n  measureRequestSize: true,\n  applyCustomAttributesOnSpan: (span, request, result) => {\n    span.setAttribute('foo', 'bar');\n  },\n});\n```\n\n| Option                         | Type                                                                                    | Default | Description                                                                                                                              |\n| ------------------------------ | --------------------------------------------------------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- |\n| `ignoreUrls`                   | `Array<string \\| RegExp>`                                                               | —       | List of URLs that we do not want its requests instrumented. You can use strings for a single match or regular expressions to match many. |\n| `propagateTraceHeaderCorsUrls` | `Array<string \\| RegExp>`                                                               | —       | List of cross origin URLs to appens trace context headers. You can use strings for a single match or regular expressions to match many.  |\n| `measureRequestSize`           | `boolean`                                                                               | —       | Set it to `true` to add the request size as a Span attribute.                                                                            |\n| `sanitizeUrl`                  | `(url: string) => string`                                                               | —       | Returns the given URL with sensitive fields `REDACTED`.                                                                                  |\n| `requestHook`                  | `(span: Span, request: Request \\| RequestInit) => void`                                 | —       | Function for adding Span attributes or request headers before the request starts and trace headers are injected.                         |\n| `applyCustomAttributesOnSpan`  | `(span: Span, request: Request \\| RequestInit, result: Response \\| FetchError) => void` | —       | Function that allows you to interact with the Span once the request is finished, before the Span ends.                                   |\n\nSee [Sharing fetch and XHR hooks](#sharing-fetch-and-xhr-hooks) to reuse\ncallbacks across both instrumentations.\n\n#### Captured Attributes\n\nEach `fetch` Span includes:\n\n| Attribute                      | Description                                                                                                         |\n| ------------------------------ | ------------------------------------------------------------------------------------------------------------------- |\n| `http.request.method`          | The method of the request in uppercase (GET, POST, PUT, PATCH, QUERY).                                              |\n| `http.request.method_original` | Original HTTP method sent by the client in the request line..                                                       |\n| `url.full`                     | Absolute URL describing a network resource according to RFC3986 (sanitized if passing `sanitizeUrl` config option). |\n| `server.address`               | The hostmane of the request's URL.                                                                                  |\n| `server.port`                  | The port of the request's URL.                                                                                      |\n| `http.response.status_code`    | HTTP response status code.                                                                                          |\n| `error.type`                   | If request failed. Describes a class of error the operation ended with.                                             |\n\n---\n\n### XHR (XmlHttpRequest)\n\n```typescript\nimport { XhrInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/xhr';\n```\n\nEmits a Span for every HTTP request made using the `window.XmlHttpRequest`\nbrowser API. This instrumentation also propagates the context for distributed\ntraces.\n\n#### Configuration\n\n```typescript\nnew XhrInstrumentation({\n  ignoreUrls: ['https://example.com/api'],\n  propagateTraceHeaderCorsUrls: [/domain.com\\/api.*/],\n  measureRequestSize: true,\n  applyCustomAttributesOnSpan: (span, xhr) => {\n    span.setAttribute('foo', 'bar');\n  },\n});\n```\n\n| Option                         | Type                                        | Default | Description                                                                                                                                       |\n| ------------------------------ | ------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `ignoreUrls`                   | `Array<string \\| RegExp>`                   | —       | List of URLs that we do not want its requests instrumented. You can use strings for a single match or regular expressions to match many.          |\n| `propagateTraceHeaderCorsUrls` | `Array<string \\| RegExp>`                   | —       | List of cross origin URLs to appens trace context headers. You can use strings for a single match or regular expressions to match many.           |\n| `measureRequestSize`           | `boolean`                                   | —       | Set it to `true` to add the request size as a Span attribute.                                                                                     |\n| `sanitizeUrl`                  | `(url: string) => string`                   | —       | Returns the given URL with sensitive fields `REDACTED`.                                                                                           |\n| `requestHook`                  | `(span: Span, xhr: XMLHttpRequest) => void` | —       | Function for adding Span attributes or request headers via `xhr.setRequestHeader`. Called after `open`, before `send` and trace-header injection. |\n| `applyCustomAttributesOnSpan`  | `(span: Span, xhr: XMLHttpRequest) => void` | —       | Function that allows you to interact with the Span and completed XHR once the request is finished, before the Span ends.                          |\n\n#### Sharing fetch and XHR hooks\n\nBoth instrumentations accept the same callbacks when the request parameter is\ntyped as `Request | RequestInit | XMLHttpRequest`. For\n`applyCustomAttributesOnSpan`, make the third parameter optional: fetch supplies\na `Response` or `FetchError`, while XHR supplies no third argument. Read XHR\nresponse information from the `XMLHttpRequest` itself.\n\nHooks run synchronously. Errors thrown by either hook are caught and reported\nthrough the instrumentation's diagnostic logger without interrupting the request\nor preventing the Span from ending. Ignored requests and disabled\ninstrumentations do not invoke hooks.\n\n**Note:** For `fetch(url, init)`, the example below changes the caller's\n`init.headers`. These changes persist if `init` is reused; pass a fresh `init`\nobject for each request to keep them request-specific.\n\n```typescript\nimport type { Span } from '@opentelemetry/api';\nimport {\n  FetchInstrumentation,\n  type FetchError,\n} from '@opentelemetry/browser-instrumentation/experimental/fetch';\nimport { XhrInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/xhr';\n\ntype HttpRequest = Request | RequestInit | XMLHttpRequest;\n\nconst hooks = {\n  requestHook: (span: Span, request: HttpRequest) => {\n    span.setAttribute(\n      'request.api',\n      request instanceof XMLHttpRequest ? 'xhr' : 'fetch',\n    );\n    if (request instanceof XMLHttpRequest) {\n      request.setRequestHeader('x-custom-header', 'value');\n    } else if (request instanceof Request) {\n      request.headers.set('x-custom-header', 'value');\n    } else {\n      const headers = new Headers(request.headers);\n      headers.set('x-custom-header', 'value');\n      request.headers = headers;\n    }\n  },\n  applyCustomAttributesOnSpan: (\n    span: Span,\n    request: HttpRequest,\n    result?: Response | FetchError,\n  ) => {\n    const status =\n      request instanceof XMLHttpRequest ? request.status : result?.status;\n    if (status !== undefined) {\n      span.setAttribute('custom.response.status', status);\n    }\n  },\n};\n\nnew FetchInstrumentation(hooks);\nnew XhrInstrumentation(hooks);\n```\n\n#### Captured Attributes\n\nEach `xhr` Span includes:\n\n| Attribute                      | Description                                                                                                         |\n| ------------------------------ | ------------------------------------------------------------------------------------------------------------------- |\n| `http.request.method`          | The method of the request in uppercase (GET, POST, PUT, PATCH, QUERY).                                              |\n| `http.request.method_original` | Original HTTP method sent by the client in the request line..                                                       |\n| `url.full`                     | Absolute URL describing a network resource according to RFC3986 (sanitized if passing `sanitizeUrl` config option). |\n| `server.address`               | The hostmane of the request's URL.                                                                                  |\n| `server.port`                  | The port of the request's URL.                                                                                      |\n| `http.response.status_code`    | HTTP response status code.                                                                                          |\n| `error.type`                   | If request failed. Describes a class of error the operation ended with.                                             |\n\n## Enabling and disabling\n\nEach instrumentation has three methods: `enable()`, `disable()` and\n`isEnabled()`.\n\n- `new X()` does nothing. It only stores the config. It does not patch, listen\n  or emit.\n- The first `enable(deps?)` runs a one-time init and then starts emitting. Init\n  patches browser APIs and checks that the browser supports what the\n  instrumentation needs.\n- The first `enable()` also locks the dependencies for the life of the instance.\n  A dependency that you do not pass uses the global API from\n  `@opentelemetry/api`. Later `enable()` calls ignore `deps`. They log a warning\n  if a passed dependency differs from the locked one, and a debug message if it\n  is the same.\n- `disable()` stops emitting and removes listeners. Patched browser APIs stay\n  patched, because other code may have wrapped them after us. A later `enable()`\n  starts emitting again, unless `disable()` failed.\n- `isEnabled()` is `true` only while the instrumentation emits.\n\nThe dependencies are:\n\n| Dependency       | Used for                           | Default                    |\n| ---------------- | ---------------------------------- | -------------------------- |\n| `tracerProvider` | Spans                              | The global tracer provider |\n| `loggerProvider` | Log records (events)               | The global logger provider |\n| `propagator`     | Trace context in outgoing requests | The global propagation API |\n\n```typescript\nimport { ErrorsInstrumentation } from '@opentelemetry/browser-instrumentation/experimental/errors';\n\nconst errors = new ErrorsInstrumentation();\nerrors.isEnabled(); // false. Nothing is patched yet.\n\n// No deps are passed, so it uses the global providers.\nerrors.enable();\nerrors.isEnabled(); // true\n\nerrors.disable();\nerrors.isEnabled(); // false\n```\n\nThe [Browser SDK](../sdk) calls `enable()` and `disable()` for you. For example,\nto wait for user consent, start the SDK with `enabled: false` and call\n`sdk.enable()` later. See the SDK README.\n\nListeners are added only when the instrumentation is enabled. So a late\n`enable()` still records the initial page load, buffered resource entries, and\nweb vitals that are reported only once. One-time events, such as the initial\npage load, are not emitted a second time after `disable()` and `enable()`.\n\nTo keep an instrumentation fully off, with no patches, do not call `enable()`.\n\nInit can fail, for example when a needed browser API is missing or another\nscript has locked it. A passed provider that cannot give a tracer or logger\nfails the same way. The reason is logged as an error through the OpenTelemetry\ndiag logger, so set one with `diag.setLogger()` to see it. A failed\ninstrumentation stays off for good. Later calls to `enable()` only log a debug\nline. A `disable()` that throws, for example when a listener cannot be removed,\nis also logged as an error and keeps the instrumentation off in the same way. An\n`_onEnable()` that throws is logged as an error, and a later `enable()` tries\nagain, unless the `_onDisable()` that cleans up after it throws too.\n\n### Differences from classic instrumentations\n\nThese instrumentations do not use the base class from\n`@opentelemetry/instrumentation`. So they behave differently from the\ninstrumentations in `opentelemetry-js` and `opentelemetry-js-contrib`:\n\n- Creating an instrumentation does not enable it. Call `enable()`, or pass it to\n  the Browser SDK.\n- Providers and the propagator are passed once, to the first `enable()`. There\n  are no setters for them.\n- `disable()` does not unpatch browser APIs.\n- The config is set once, in the constructor. There is no `enabled` config\n  option.\n\nDo not use a classic instrumentation for the same API as one of these. A classic\ninstrumentation cannot detect our patches, so both would record every call.\n\n## Writing an instrumentation\n\nExtend `InstrumentationBase`. Do not implement the `Instrumentation` interface\ndirectly: the base class implements the `Instrumentation` contract the Browser\nSDK accepts (`instrumentationName`, `enable(deps?)`, `disable()` and\n`isEnabled()`) and the lifecycle in\n[Enabling and\ndisabling](#enabling-and-disabling)\n— the dependency locking, the error containment of `_safeExecute()` and the\nenable/disable state machine. A direct interface implementation has to rebuild\nall of that, and misses the base class's guarantees.\n\n`InstrumentationBase`, `Instrumentation` and `InstrumentationDeps` are exported\nfrom [`@opentelemetry/browser-api`](../api). Add it as a dependency. You do not\nneed this package, so your instrumentation is not tied to its releases.\n\n```bash\nnpm install @opentelemetry/browser-api\n```\n\nOverride these hooks. All of them must be synchronous, because the lifecycle\ndoes not wait for a returned promise. Do not use `async` here: a rejection is\nnot logged, and it reaches the page as an unhandled rejection. Hooks must not\ncall `enable()` or `disable()`.\n\n- `_init()` runs once, at the first `enable()`. It only patches browser APIs\n  with `_wrap()` and checks that the browser supports what the instrumentation\n  needs. Throw if the instrumentation cannot run. A failed init is final.\n- `_onEnable()` runs each time `enable()` turns emission on. Add listeners and\n  observers here, including buffered ones. If it throws, `_onDisable()` runs to\n  remove what it added, and a later `enable()` tries again. If that\n  `_onDisable()` throws too, the instrumentation stays off for good.\n- `_onDisable()` runs each time `disable()` turns emission off. Remove what\n  `_onEnable()` added. If it throws, some listeners may still be attached, so\n  the instrumentation stays off for good.\n\nFrom the first `enable()`, use `this.tracer`, `this.logger` and\n`this.propagator`. They come from the locked dependencies. Use `this.propagator`\ninstead of the global `propagation` API, so a second SDK on the page can inject\nits own trace context.\n\nTake the instrumentation's own dependencies, such as a store, in the\nconstructor. Only `tracerProvider`, `loggerProvider` and `propagator` go through\n`enable()`. They cannot be constructor arguments, because `startBrowserSdk`\ncreates them after you construct the instrumentation.\n\nThere is `_wrap()` but no unwrap. Patches are never removed, because other code\nmay have wrapped on top of ours. So a patch must check `isEnabled()`, and pass\nthe call through when it is false. Run user hooks and emit code through\n`_safeExecute()`, so that a throw, or a rejected promise, is logged and does not\nbreak the page. In your own `catch` blocks, pass the caught value through\n`_toError()` before you log it. A page can throw a value that is not an `Error`.\n\n```typescript\nimport { InstrumentationBase } from '@opentelemetry/browser-api';\n\nexport interface RouteConfig {\n  includeHash?: boolean;\n}\n\nexport class RouteInstrumentation extends InstrumentationBase<RouteConfig> {\n  private _onPopState: (() => void) | undefined;\n\n  constructor(config: RouteConfig = {}) {\n    super('route-example', '0.1.0', config);\n  }\n\n  protected override _init(): void {\n    const instrumentation = this;\n    this._wrap(\n      history,\n      'pushState',\n      (original) =>\n        function patchedPushState(\n          this: History,\n          ...args: Parameters<History['pushState']>\n        ) {\n          const result = original.apply(this, args);\n          if (instrumentation.isEnabled()) {\n            instrumentation._record();\n          }\n          return result;\n        },\n    );\n  }\n\n  protected override _onEnable(): void {\n    this._onPopState = () => this._record();\n    window.addEventListener('popstate', this._onPopState);\n  }\n\n  protected override _onDisable(): void {\n    if (this._onPopState) {\n      window.removeEventListener('popstate', this._onPopState);\n      this._onPopState = undefined;\n    }\n  }\n\n  private _record(): void {\n    this._safeExecute('failed to record a route change', () => {\n      const url = this._config.includeHash\n        ? location.href\n        : location.href.split('#')[0];\n      this.logger.emit({\n        eventName: 'example.route_change',\n        attributes: { 'url.full': url },\n      });\n    });\n  }\n}\n```\n\n## Useful links\n\n- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>\n- For more about OpenTelemetry Browser:\n  <https://github.com/open-telemetry/opentelemetry-browser>\n- For help or feedback on this project, join us in\n  [GitHub Discussions][discussions-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[discussions-url]:\n  https://github.com/open-telemetry/opentelemetry-browser/discussions/landing\n[license-url]:\n  https://github.com/open-telemetry/opentelemetry-browser/blob/main/LICENSE\n[license-image]:\n  https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[npm-url]: https://www.npmjs.com/package/@opentelemetry/browser-instrumentation\n[npm-img]:\n  https://badge.fury.io/js/%40opentelemetry%2Fbrowser-instrumentation.svg\n","readmeFilename":"README.md"}