@opentelemetry/core
Advanced tools
Comparing version
@@ -58,16 +58,13 @@ /* | ||
export function parseKeyPairsIntoRecord(value) { | ||
if (typeof value !== 'string' || value.length === 0) | ||
return {}; | ||
return value | ||
.split(BAGGAGE_ITEMS_SEPARATOR) | ||
.map(entry => { | ||
return parsePairKeyValue(entry); | ||
}) | ||
.filter(keyPair => keyPair !== undefined && keyPair.value.length > 0) | ||
.reduce((headers, keyPair) => { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
headers[keyPair.key] = keyPair.value; | ||
return headers; | ||
}, {}); | ||
const result = {}; | ||
if (typeof value === 'string' && value.length > 0) { | ||
value.split(BAGGAGE_ITEMS_SEPARATOR).forEach(entry => { | ||
const keyPair = parsePairKeyValue(entry); | ||
if (keyPair !== undefined && keyPair.value.length > 0) { | ||
result[keyPair.key] = keyPair.value; | ||
} | ||
}); | ||
} | ||
return result; | ||
} | ||
//# sourceMappingURL=utils.js.map |
@@ -5,5 +5,5 @@ /** Constants describing the SDK in use */ | ||
"process.runtime.name": string; | ||
"telemetry.sdk.language": string; | ||
"telemetry.sdk.language": "webjs"; | ||
"telemetry.sdk.version": string; | ||
}; | ||
//# sourceMappingURL=sdk-info.d.ts.map |
@@ -17,10 +17,11 @@ /* | ||
import { VERSION } from '../../version'; | ||
import { SEMRESATTRS_TELEMETRY_SDK_NAME, SEMRESATTRS_PROCESS_RUNTIME_NAME, SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, TELEMETRYSDKLANGUAGEVALUES_WEBJS, SEMRESATTRS_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions'; | ||
import { ATTR_TELEMETRY_SDK_NAME, ATTR_TELEMETRY_SDK_LANGUAGE, TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS, ATTR_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions'; | ||
import { ATTR_PROCESS_RUNTIME_NAME } from '../../semconv'; | ||
/** Constants describing the SDK in use */ | ||
export const SDK_INFO = { | ||
[SEMRESATTRS_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[SEMRESATTRS_PROCESS_RUNTIME_NAME]: 'browser', | ||
[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]: TELEMETRYSDKLANGUAGEVALUES_WEBJS, | ||
[SEMRESATTRS_TELEMETRY_SDK_VERSION]: VERSION, | ||
[ATTR_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[ATTR_PROCESS_RUNTIME_NAME]: 'browser', | ||
[ATTR_TELEMETRY_SDK_LANGUAGE]: TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS, | ||
[ATTR_TELEMETRY_SDK_VERSION]: VERSION, | ||
}; | ||
//# sourceMappingURL=sdk-info.js.map |
@@ -5,5 +5,5 @@ /** Constants describing the SDK in use */ | ||
"process.runtime.name": string; | ||
"telemetry.sdk.language": string; | ||
"telemetry.sdk.language": "nodejs"; | ||
"telemetry.sdk.version": string; | ||
}; | ||
//# sourceMappingURL=sdk-info.d.ts.map |
@@ -17,10 +17,11 @@ /* | ||
import { VERSION } from '../../version'; | ||
import { SEMRESATTRS_TELEMETRY_SDK_NAME, SEMRESATTRS_PROCESS_RUNTIME_NAME, SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, TELEMETRYSDKLANGUAGEVALUES_NODEJS, SEMRESATTRS_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions'; | ||
import { ATTR_TELEMETRY_SDK_NAME, ATTR_TELEMETRY_SDK_LANGUAGE, TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS, ATTR_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions'; | ||
import { ATTR_PROCESS_RUNTIME_NAME } from '../../semconv'; | ||
/** Constants describing the SDK in use */ | ||
export const SDK_INFO = { | ||
[SEMRESATTRS_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[SEMRESATTRS_PROCESS_RUNTIME_NAME]: 'node', | ||
[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]: TELEMETRYSDKLANGUAGEVALUES_NODEJS, | ||
[SEMRESATTRS_TELEMETRY_SDK_VERSION]: VERSION, | ||
[ATTR_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[ATTR_PROCESS_RUNTIME_NAME]: 'node', | ||
[ATTR_TELEMETRY_SDK_LANGUAGE]: TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS, | ||
[ATTR_TELEMETRY_SDK_VERSION]: VERSION, | ||
}; | ||
//# sourceMappingURL=sdk-info.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "2.0.0"; | ||
export declare const VERSION = "2.0.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export const VERSION = '2.0.0'; | ||
export const VERSION = '2.0.1'; | ||
//# sourceMappingURL=version.js.map |
@@ -58,16 +58,13 @@ /* | ||
export function parseKeyPairsIntoRecord(value) { | ||
if (typeof value !== 'string' || value.length === 0) | ||
return {}; | ||
return value | ||
.split(BAGGAGE_ITEMS_SEPARATOR) | ||
.map(entry => { | ||
return parsePairKeyValue(entry); | ||
}) | ||
.filter(keyPair => keyPair !== undefined && keyPair.value.length > 0) | ||
.reduce((headers, keyPair) => { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
headers[keyPair.key] = keyPair.value; | ||
return headers; | ||
}, {}); | ||
const result = {}; | ||
if (typeof value === 'string' && value.length > 0) { | ||
value.split(BAGGAGE_ITEMS_SEPARATOR).forEach(entry => { | ||
const keyPair = parsePairKeyValue(entry); | ||
if (keyPair !== undefined && keyPair.value.length > 0) { | ||
result[keyPair.key] = keyPair.value; | ||
} | ||
}); | ||
} | ||
return result; | ||
} | ||
//# sourceMappingURL=utils.js.map |
@@ -5,5 +5,5 @@ /** Constants describing the SDK in use */ | ||
"process.runtime.name": string; | ||
"telemetry.sdk.language": string; | ||
"telemetry.sdk.language": "webjs"; | ||
"telemetry.sdk.version": string; | ||
}; | ||
//# sourceMappingURL=sdk-info.d.ts.map |
@@ -17,10 +17,11 @@ /* | ||
import { VERSION } from '../../version'; | ||
import { SEMRESATTRS_TELEMETRY_SDK_NAME, SEMRESATTRS_PROCESS_RUNTIME_NAME, SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, TELEMETRYSDKLANGUAGEVALUES_WEBJS, SEMRESATTRS_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions'; | ||
import { ATTR_TELEMETRY_SDK_NAME, ATTR_TELEMETRY_SDK_LANGUAGE, TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS, ATTR_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions'; | ||
import { ATTR_PROCESS_RUNTIME_NAME } from '../../semconv'; | ||
/** Constants describing the SDK in use */ | ||
export const SDK_INFO = { | ||
[SEMRESATTRS_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[SEMRESATTRS_PROCESS_RUNTIME_NAME]: 'browser', | ||
[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]: TELEMETRYSDKLANGUAGEVALUES_WEBJS, | ||
[SEMRESATTRS_TELEMETRY_SDK_VERSION]: VERSION, | ||
[ATTR_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[ATTR_PROCESS_RUNTIME_NAME]: 'browser', | ||
[ATTR_TELEMETRY_SDK_LANGUAGE]: TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS, | ||
[ATTR_TELEMETRY_SDK_VERSION]: VERSION, | ||
}; | ||
//# sourceMappingURL=sdk-info.js.map |
@@ -5,5 +5,5 @@ /** Constants describing the SDK in use */ | ||
"process.runtime.name": string; | ||
"telemetry.sdk.language": string; | ||
"telemetry.sdk.language": "nodejs"; | ||
"telemetry.sdk.version": string; | ||
}; | ||
//# sourceMappingURL=sdk-info.d.ts.map |
@@ -17,10 +17,11 @@ /* | ||
import { VERSION } from '../../version'; | ||
import { SEMRESATTRS_TELEMETRY_SDK_NAME, SEMRESATTRS_PROCESS_RUNTIME_NAME, SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, TELEMETRYSDKLANGUAGEVALUES_NODEJS, SEMRESATTRS_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions'; | ||
import { ATTR_TELEMETRY_SDK_NAME, ATTR_TELEMETRY_SDK_LANGUAGE, TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS, ATTR_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions'; | ||
import { ATTR_PROCESS_RUNTIME_NAME } from '../../semconv'; | ||
/** Constants describing the SDK in use */ | ||
export const SDK_INFO = { | ||
[SEMRESATTRS_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[SEMRESATTRS_PROCESS_RUNTIME_NAME]: 'node', | ||
[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]: TELEMETRYSDKLANGUAGEVALUES_NODEJS, | ||
[SEMRESATTRS_TELEMETRY_SDK_VERSION]: VERSION, | ||
[ATTR_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[ATTR_PROCESS_RUNTIME_NAME]: 'node', | ||
[ATTR_TELEMETRY_SDK_LANGUAGE]: TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS, | ||
[ATTR_TELEMETRY_SDK_VERSION]: VERSION, | ||
}; | ||
//# sourceMappingURL=sdk-info.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "2.0.0"; | ||
export declare const VERSION = "2.0.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -17,3 +17,3 @@ /* | ||
// this is autogenerated file, see scripts/version-update.js | ||
export const VERSION = '2.0.0'; | ||
export const VERSION = '2.0.1'; | ||
//# sourceMappingURL=version.js.map |
@@ -64,17 +64,14 @@ "use strict"; | ||
function parseKeyPairsIntoRecord(value) { | ||
if (typeof value !== 'string' || value.length === 0) | ||
return {}; | ||
return value | ||
.split(constants_1.BAGGAGE_ITEMS_SEPARATOR) | ||
.map(entry => { | ||
return parsePairKeyValue(entry); | ||
}) | ||
.filter(keyPair => keyPair !== undefined && keyPair.value.length > 0) | ||
.reduce((headers, keyPair) => { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
headers[keyPair.key] = keyPair.value; | ||
return headers; | ||
}, {}); | ||
const result = {}; | ||
if (typeof value === 'string' && value.length > 0) { | ||
value.split(constants_1.BAGGAGE_ITEMS_SEPARATOR).forEach(entry => { | ||
const keyPair = parsePairKeyValue(entry); | ||
if (keyPair !== undefined && keyPair.value.length > 0) { | ||
result[keyPair.key] = keyPair.value; | ||
} | ||
}); | ||
} | ||
return result; | ||
} | ||
exports.parseKeyPairsIntoRecord = parseKeyPairsIntoRecord; | ||
//# sourceMappingURL=utils.js.map |
@@ -5,5 +5,5 @@ /** Constants describing the SDK in use */ | ||
"process.runtime.name": string; | ||
"telemetry.sdk.language": string; | ||
"telemetry.sdk.language": "webjs"; | ||
"telemetry.sdk.version": string; | ||
}; | ||
//# sourceMappingURL=sdk-info.d.ts.map |
@@ -21,9 +21,10 @@ "use strict"; | ||
const semantic_conventions_1 = require("@opentelemetry/semantic-conventions"); | ||
const semconv_1 = require("../../semconv"); | ||
/** Constants describing the SDK in use */ | ||
exports.SDK_INFO = { | ||
[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[semantic_conventions_1.SEMRESATTRS_PROCESS_RUNTIME_NAME]: 'browser', | ||
[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]: semantic_conventions_1.TELEMETRYSDKLANGUAGEVALUES_WEBJS, | ||
[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_VERSION]: version_1.VERSION, | ||
[semantic_conventions_1.ATTR_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[semconv_1.ATTR_PROCESS_RUNTIME_NAME]: 'browser', | ||
[semantic_conventions_1.ATTR_TELEMETRY_SDK_LANGUAGE]: semantic_conventions_1.TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS, | ||
[semantic_conventions_1.ATTR_TELEMETRY_SDK_VERSION]: version_1.VERSION, | ||
}; | ||
//# sourceMappingURL=sdk-info.js.map |
@@ -5,5 +5,5 @@ /** Constants describing the SDK in use */ | ||
"process.runtime.name": string; | ||
"telemetry.sdk.language": string; | ||
"telemetry.sdk.language": "nodejs"; | ||
"telemetry.sdk.version": string; | ||
}; | ||
//# sourceMappingURL=sdk-info.d.ts.map |
@@ -21,9 +21,10 @@ "use strict"; | ||
const semantic_conventions_1 = require("@opentelemetry/semantic-conventions"); | ||
const semconv_1 = require("../../semconv"); | ||
/** Constants describing the SDK in use */ | ||
exports.SDK_INFO = { | ||
[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[semantic_conventions_1.SEMRESATTRS_PROCESS_RUNTIME_NAME]: 'node', | ||
[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]: semantic_conventions_1.TELEMETRYSDKLANGUAGEVALUES_NODEJS, | ||
[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_VERSION]: version_1.VERSION, | ||
[semantic_conventions_1.ATTR_TELEMETRY_SDK_NAME]: 'opentelemetry', | ||
[semconv_1.ATTR_PROCESS_RUNTIME_NAME]: 'node', | ||
[semantic_conventions_1.ATTR_TELEMETRY_SDK_LANGUAGE]: semantic_conventions_1.TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS, | ||
[semantic_conventions_1.ATTR_TELEMETRY_SDK_VERSION]: version_1.VERSION, | ||
}; | ||
//# sourceMappingURL=sdk-info.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "2.0.0"; | ||
export declare const VERSION = "2.0.1"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '2.0.0'; | ||
exports.VERSION = '2.0.1'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/core", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "OpenTelemetry Core provides constants and utilities shared by all OpenTelemetry SDK packages.", | ||
@@ -85,3 +85,3 @@ "main": "build/src/index.js", | ||
"typescript": "5.0.4", | ||
"webpack": "5.96.1" | ||
"webpack": "5.99.8" | ||
}, | ||
@@ -96,3 +96,3 @@ "peerDependencies": { | ||
"sideEffects": false, | ||
"gitHead": "7fde94081ed141c7d61db269b77d5765887a9665" | ||
"gitHead": "4ce5bd165195870f292fa95e312cffe05eb9e09d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
686969
1.16%372
2.48%7700
1.42%