@vercel/otel 1.13.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,8 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { createRequire as topLevelCreateRequire } from 'module';
3
+ import _nPath from 'path'
4
+ const require = topLevelCreateRequire(import.meta.url);
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = _nPath.dirname(__filename);
7
+ var b=Object.create;var p=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var k=(o=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(r,e)=>(typeof require<"u"?require:r)[e]}):o)(function(o){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+o+'" is not supported')});var i=(o,r)=>()=>(o&&(r=o(o=0)),r);var l=(o,r)=>()=>(r||o((r={exports:{}}).exports,r),r.exports),n=(o,r)=>{for(var e in r)p(o,e,{get:r[e],enumerable:!0})},m=(o,r,e,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let f of d(r))!h.call(o,f)&&f!==e&&p(o,f,{get:()=>r[f],enumerable:!(a=c(r,f))||a.enumerable});return o},x=(o,r,e)=>(m(o,r,"default"),e&&m(e,r,"default")),q=(o,r,e)=>(e=o!=null?b(g(o)):{},m(r||!o||!o.__esModule?p(e,"default",{value:o,enumerable:!0}):e,o)),s=o=>m(p({},"__esModule",{value:!0}),o);var t={};import*as v from"@opentelemetry/api";var j=i(()=>{x(t,v)});export{k as a,i as b,l as c,n as d,x as e,q as f,s as g,t as h,j as i};
8
+ //# sourceMappingURL=chunk-5MU5Z6L3.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["external:@opentelemetry/api"],
4
+ "sourcesContent": ["export * from \"@opentelemetry/api\""],
5
+ "mappings": ";;;;;;i7BAAA,IAAAA,EAAA,aAAAC,MAAc,qBAAd,IAAAC,EAAAC,EAAA,KAAAC,EAAAJ,EAAAC",
6
+ "names": ["api_exports", "api_star", "init_api", "__esmMin", "__reExport"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { createRequire as topLevelCreateRequire } from 'module';
3
+ import _nPath from 'path'
4
+ const require = topLevelCreateRequire(import.meta.url);
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = _nPath.dirname(__filename);
7
+ import{a as c,c as r}from"./chunk-5MU5Z6L3.js";var t=r(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.execAsync=void 0;var s=c("child_process"),i=c("util");e.execAsync=i.promisify(s.exec)});export{t as a};
8
+ //# sourceMappingURL=chunk-NWCAEW5Y.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.pnpm/@opentelemetry+resources@2.1.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/execAsync.ts"],
4
+ "sourcesContent": ["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as child_process from 'child_process';\nimport * as util from 'util';\n\nexport const execAsync = util.promisify(child_process.exec);\n"],
5
+ "mappings": ";;;;;;4IAgBA,IAAAA,EAAA,EAAA,eAAA,EACAC,EAAA,EAAA,MAAA,EAEaC,EAAA,UAAYD,EAAK,UAAUD,EAAc,IAAI",
6
+ "names": ["child_process", "util", "exports"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { createRequire as topLevelCreateRequire } from 'module';
3
+ import _nPath from 'path'
4
+ const require = topLevelCreateRequire(import.meta.url);
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = _nPath.dirname(__filename);
7
+ import{a as d}from"./chunk-NWCAEW5Y.js";import{a as i,c as n,g as c,h as s,i as u}from"./chunk-5MU5Z6L3.js";var h=n(t=>{Object.defineProperty(t,"__esModule",{value:!0});t.getMachineId=void 0;var a=i("fs"),o=d(),r=(u(),c(s));async function g(){try{return(await a.promises.readFile("/etc/hostid",{encoding:"utf8"})).trim()}catch(e){r.diag.debug(`error reading machine id: ${e}`)}try{return(await(0,o.execAsync)("kenv -q smbios.system.uuid")).stdout.trim()}catch(e){r.diag.debug(`error reading machine id: ${e}`)}}t.getMachineId=g});export default h();
8
+ //# sourceMappingURL=getMachineId-bsd-WEBNKY2R.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.pnpm/@opentelemetry+resources@2.1.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-bsd.ts"],
4
+ "sourcesContent": ["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { promises as fs } from 'fs';\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n try {\n const result = await fs.readFile('/etc/hostid', { encoding: 'utf8' });\n return result.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n try {\n const result = await execAsync('kenv -q smbios.system.uuid');\n return result.stdout.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],
5
+ "mappings": ";;;;;;+LAgBA,IAAAA,EAAA,EAAA,IAAA,EACAC,EAAA,IACAC,EAAA,WAEO,eAAeC,GAAY,CAChC,GAAI,CAEF,OADe,MAAMH,EAAA,SAAG,SAAS,cAAe,CAAE,SAAU,MAAM,CAAE,GACtD,KAAI,QACX,EAAG,CACVE,EAAA,KAAK,MAAM,6BAA6B,CAAC,EAAE,EAG7C,GAAI,CAEF,OADe,QAAMD,EAAA,WAAU,4BAA4B,GAC7C,OAAO,KAAI,QAClB,EAAG,CACVC,EAAA,KAAK,MAAM,6BAA6B,CAAC,EAAE,EAI/C,CAhBAE,EAAA,aAAAD",
6
+ "names": ["fs_1", "execAsync_1", "api_1", "getMachineId", "exports"]
7
+ }
@@ -0,0 +1,9 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { createRequire as topLevelCreateRequire } from 'module';
3
+ import _nPath from 'path'
4
+ const require = topLevelCreateRequire(import.meta.url);
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = _nPath.dirname(__filename);
7
+ import{a}from"./chunk-NWCAEW5Y.js";import{c,g as d,h as s,i as u}from"./chunk-5MU5Z6L3.js";var g=c(e=>{Object.defineProperty(e,"__esModule",{value:!0});e.getMachineId=void 0;var o=a(),l=(u(),d(s));async function f(){try{let i=(await(0,o.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"')).stdout.split(`
8
+ `).find(r=>r.includes("IOPlatformUUID"));if(!i)return;let n=i.split('" = "');if(n.length===2)return n[1].slice(0,-1)}catch(t){l.diag.debug(`error reading machine id: ${t}`)}}e.getMachineId=f});export default g();
9
+ //# sourceMappingURL=getMachineId-darwin-LT47KAXP.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.pnpm/@opentelemetry+resources@2.1.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-darwin.ts"],
4
+ "sourcesContent": ["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n try {\n const result = await execAsync('ioreg -rd1 -c \"IOPlatformExpertDevice\"');\n\n const idLine = result.stdout\n .split('\\n')\n .find(line => line.includes('IOPlatformUUID'));\n\n if (!idLine) {\n return undefined;\n }\n\n const parts = idLine.split('\" = \"');\n if (parts.length === 2) {\n return parts[1].slice(0, -1);\n }\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],
5
+ "mappings": ";;;;;;8KAgBA,IAAAA,EAAA,IACAC,EAAA,WAEO,eAAeC,GAAY,CAChC,GAAI,CAGF,IAAMC,GAFS,QAAMH,EAAA,WAAU,wCAAwC,GAEjD,OACnB,MAAM;CAAI,EACV,KAAKI,GAAQA,EAAK,SAAS,gBAAgB,CAAC,EAE/C,GAAI,CAACD,EACH,OAGF,IAAME,EAAQF,EAAO,MAAM,OAAO,EAClC,GAAIE,EAAM,SAAW,EACnB,OAAOA,EAAM,CAAC,EAAE,MAAM,EAAG,EAAE,QAEtBC,EAAG,CACVL,EAAA,KAAK,MAAM,6BAA6BK,CAAC,EAAE,EAI/C,CArBAC,EAAA,aAAAL",
6
+ "names": ["execAsync_1", "api_1", "getMachineId", "idLine", "line", "parts", "e", "exports"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { createRequire as topLevelCreateRequire } from 'module';
3
+ import _nPath from 'path'
4
+ const require = topLevelCreateRequire(import.meta.url);
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = _nPath.dirname(__filename);
7
+ import{a as n,c,g as a,h as d,i as s}from"./chunk-5MU5Z6L3.js";var f=c(e=>{Object.defineProperty(e,"__esModule",{value:!0});e.getMachineId=void 0;var u=n("fs"),o=(s(),a(d));async function h(){let i=["/etc/machine-id","/var/lib/dbus/machine-id"];for(let r of i)try{return(await u.promises.readFile(r,{encoding:"utf8"})).trim()}catch(t){o.diag.debug(`error reading machine id: ${t}`)}}e.getMachineId=h});export default f();
8
+ //# sourceMappingURL=getMachineId-linux-LTVQO6VW.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.pnpm/@opentelemetry+resources@2.1.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-linux.ts"],
4
+ "sourcesContent": ["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { promises as fs } from 'fs';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];\n\n for (const path of paths) {\n try {\n const result = await fs.readFile(path, { encoding: 'utf8' });\n return result.trim();\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n }\n\n return undefined;\n}\n"],
5
+ "mappings": ";;;;;;kJAeA,IAAAA,EAAA,EAAA,IAAA,EACAC,EAAA,WAEO,eAAeC,GAAY,CAChC,IAAMC,EAAQ,CAAC,kBAAmB,0BAA0B,EAE5D,QAAWC,KAAQD,EACjB,GAAI,CAEF,OADe,MAAMH,EAAA,SAAG,SAASI,EAAM,CAAE,SAAU,MAAM,CAAE,GAC7C,KAAI,QACXC,EAAG,CACVJ,EAAA,KAAK,MAAM,6BAA6BI,CAAC,EAAE,EAKjD,CAbAC,EAAA,aAAAJ",
6
+ "names": ["fs_1", "api_1", "getMachineId", "paths", "path", "e", "exports"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { createRequire as topLevelCreateRequire } from 'module';
3
+ import _nPath from 'path'
4
+ const require = topLevelCreateRequire(import.meta.url);
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = _nPath.dirname(__filename);
7
+ import{c as d,g as n,h as t,i}from"./chunk-5MU5Z6L3.js";var a=d(e=>{Object.defineProperty(e,"__esModule",{value:!0});e.getMachineId=void 0;var u=(i(),n(t));async function r(){u.diag.debug("could not read machine-id: unsupported platform")}e.getMachineId=r});export default a();
8
+ //# sourceMappingURL=getMachineId-unsupported-UKWBA27G.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.pnpm/@opentelemetry+resources@2.1.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-unsupported.ts"],
4
+ "sourcesContent": ["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n diag.debug('could not read machine-id: unsupported platform');\n return undefined;\n}\n"],
5
+ "mappings": ";;;;;;2IAgBA,IAAAA,EAAA,WAEO,eAAeC,GAAY,CAChCD,EAAA,KAAK,MAAM,iDAAiD,CAE9D,CAHAE,EAAA,aAAAD",
6
+ "names": ["api_1", "getMachineId", "exports"]
7
+ }
@@ -0,0 +1,8 @@
1
+ import { fileURLToPath } from 'url';
2
+ import { createRequire as topLevelCreateRequire } from 'module';
3
+ import _nPath from 'path'
4
+ const require = topLevelCreateRequire(import.meta.url);
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = _nPath.dirname(__filename);
7
+ import{a as g}from"./chunk-NWCAEW5Y.js";import{a as s,c as a,g as d,h as o,i as u}from"./chunk-5MU5Z6L3.js";var _=a(e=>{Object.defineProperty(e,"__esModule",{value:!0});e.getMachineId=void 0;var n=s("process"),h=g(),y=(u(),d(o));async function E(){let c="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",t="%windir%\\System32\\REG.exe";n.arch==="ia32"&&"PROCESSOR_ARCHITEW6432"in n.env&&(t="%windir%\\sysnative\\cmd.exe /c "+t);try{let r=(await(0,h.execAsync)(`${t} ${c}`)).stdout.split("REG_SZ");if(r.length===2)return r[1].trim()}catch(i){y.diag.debug(`error reading machine id: ${i}`)}}e.getMachineId=E});export default _();
8
+ //# sourceMappingURL=getMachineId-win-NLJKOPY6.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../node_modules/.pnpm/@opentelemetry+resources@2.1.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/resources/src/detectors/platform/node/machine-id/getMachineId-win.ts"],
4
+ "sourcesContent": ["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport * as process from 'process';\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\n\nexport async function getMachineId(): Promise<string | undefined> {\n const args =\n 'QUERY HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Cryptography /v MachineGuid';\n let command = '%windir%\\\\System32\\\\REG.exe';\n if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {\n command = '%windir%\\\\sysnative\\\\cmd.exe /c ' + command;\n }\n\n try {\n const result = await execAsync(`${command} ${args}`);\n const parts = result.stdout.split('REG_SZ');\n if (parts.length === 2) {\n return parts[1].trim();\n }\n } catch (e) {\n diag.debug(`error reading machine id: ${e}`);\n }\n\n return undefined;\n}\n"],
5
+ "mappings": ";;;;;;+LAgBA,IAAAA,EAAA,EAAA,SAAA,EACAC,EAAA,IACAC,EAAA,WAEO,eAAeC,GAAY,CAChC,IAAMC,EACJ,6EACEC,EAAU,8BACVL,EAAQ,OAAS,QAAU,2BAA4BA,EAAQ,MACjEK,EAAU,mCAAqCA,GAGjD,GAAI,CAEF,IAAMC,GADS,QAAML,EAAA,WAAU,GAAGI,CAAO,IAAID,CAAI,EAAE,GAC9B,OAAO,MAAM,QAAQ,EAC1C,GAAIE,EAAM,SAAW,EACnB,OAAOA,EAAM,CAAC,EAAE,KAAI,QAEfC,EAAG,CACVL,EAAA,KAAK,MAAM,6BAA6BK,CAAC,EAAE,EAI/C,CAnBAC,EAAA,aAAAL",
6
+ "names": ["process", "execAsync_1", "api_1", "getMachineId", "args", "command", "parts", "e", "exports"]
7
+ }