Skip to content

Commit 4ebc9e2

Browse files
committed
Add browser information and update Plasmo.
1 parent 38e4778 commit 4ebc9e2

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

inlinefunc.config.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
define: {
1313
global: 'undefined',
1414
'process.env.NODE_ENV': `"${process.env.NODE_ENV}"`,
15-
// 'process.env.PLASMO_BROWSER': `"${process.env.PLASMO_BROWSER}"`,
15+
'process.env.PLASMO_BROWSER': `"${process.env.PLASMO_BROWSER}"`,
1616
'process.env.PLASMO_PUBLIC_PACKAGE_VERSION': `"${process.env.PLASMO_PUBLIC_PACKAGE_VERSION}"`,
1717
'process.env.PLASMO_PUBLIC_PACKAGE_NAME': `"${process.env.PLASMO_PUBLIC_PACKAGE_NAME}"`,
1818
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"mocha-suppress-logs": "^0.5.1",
8484
"npm-run-all": "^4.1.5",
8585
"parcel-resolver-inlinefunc": "^1.0.0",
86-
"plasmo": "^0.89.2",
86+
"plasmo": "^0.89.3",
8787
"postcss": "^8.4.47",
8888
"postcss-preset-mantine": "^1.13.0",
8989
"postcss-simple-vars": "^7.0.1",

pnpm-lock.yaml

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/content-script.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const instrument = (sessionId: string, options: ContentScriptConfigurationType)
6868
[ATTR_TELEMETRY_SDK_LANGUAGE]: 'webjs',
6969
[ATTR_TELEMETRY_SDK_NAME]: 'opentelemetry',
7070
[ATTR_TELEMETRY_SDK_VERSION]: '1.22.0', // TODO: replace with resolved version
71-
// 'browser.name': process.env.PLASMO_BROWSER, // TODO: fix why this is undefined
71+
'browser.name': process.env.PLASMO_BROWSER, // TODO: fix why this is undefined
7272
'extension.session.id': sessionId,
7373
...Object.fromEntries(options.attributes.entries())
7474
})

0 commit comments

Comments
 (0)