Socket
Socket
Sign inDemoInstall

@opentelemetry/resources

Package Overview
Dependencies
3
Maintainers
3
Versions
165
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.23.0 to 1.24.0

build/esm/platform/browser/ServiceInstanceIdDetectorSync.d.ts

7

build/esm/detectors/BrowserDetectorSync.js

@@ -38,3 +38,8 @@ /*

var _a;
var isBrowser = typeof navigator !== 'undefined';
var _b, _c, _d;
var isBrowser = typeof navigator !== 'undefined' &&
((_c = (_b = global.process) === null || _b === void 0 ? void 0 : _b.versions) === null || _c === void 0 ? void 0 : _c.node) === undefined && // Node.js v21 adds `navigator`
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore don't have Bun types
((_d = global.Bun) === null || _d === void 0 ? void 0 : _d.version) === undefined; // Bun (bun.sh) defines `navigator`
if (!isBrowser) {

@@ -41,0 +46,0 @@ return Resource.empty();

4

build/esm/detectors/EnvDetectorSync.js

@@ -45,3 +45,3 @@ /*

import { getEnv } from '@opentelemetry/core';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
import { Resource } from '../Resource';

@@ -89,3 +89,3 @@ /**

if (serviceName) {
attributes[SemanticResourceAttributes.SERVICE_NAME] = serviceName;
attributes[SEMRESATTRS_SERVICE_NAME] = serviceName;
}

@@ -92,0 +92,0 @@ return new Resource(attributes);

export * from './default-service-name';
export * from './HostDetector';
export * from './HostDetectorSync';
export * from './OSDetector';
export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIdDetectorSync';
//# sourceMappingURL=index.d.ts.map

@@ -18,7 +18,8 @@ /*

export * from './HostDetector';
export * from './HostDetectorSync';
export * from './OSDetector';
export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIdDetectorSync';
//# sourceMappingURL=index.js.map
export * from './default-service-name';
export * from './HostDetector';
export * from './HostDetectorSync';
export * from './OSDetector';
export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIdDetectorSync';
//# sourceMappingURL=index.d.ts.map

@@ -18,7 +18,8 @@ /*

export * from './HostDetector';
export * from './HostDetectorSync';
export * from './OSDetector';
export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIdDetectorSync';
//# sourceMappingURL=index.js.map

@@ -80,3 +80,3 @@ /*

import { diag } from '@opentelemetry/api';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import { SEMRESATTRS_SERVICE_NAME, SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, SEMRESATTRS_TELEMETRY_SDK_NAME, SEMRESATTRS_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions';
import { SDK_INFO } from '@opentelemetry/core';

@@ -123,6 +123,6 @@ import { defaultServiceName } from './platform';

return new Resource((_a = {},
_a[SemanticResourceAttributes.SERVICE_NAME] = defaultServiceName(),
_a[SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE] = SDK_INFO[SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE],
_a[SemanticResourceAttributes.TELEMETRY_SDK_NAME] = SDK_INFO[SemanticResourceAttributes.TELEMETRY_SDK_NAME],
_a[SemanticResourceAttributes.TELEMETRY_SDK_VERSION] = SDK_INFO[SemanticResourceAttributes.TELEMETRY_SDK_VERSION],
_a[SEMRESATTRS_SERVICE_NAME] = defaultServiceName(),
_a[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE] = SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],
_a[SEMRESATTRS_TELEMETRY_SDK_NAME] = SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_NAME],
_a[SEMRESATTRS_TELEMETRY_SDK_VERSION] = SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_VERSION],
_a));

@@ -129,0 +129,0 @@ };

@@ -1,2 +0,2 @@

export declare const VERSION = "1.23.0";
export declare const VERSION = "1.24.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export var VERSION = '1.23.0';
export var VERSION = '1.24.0';
//# sourceMappingURL=version.js.map

@@ -24,3 +24,8 @@ /*

detect(config) {
const isBrowser = typeof navigator !== 'undefined';
var _a, _b, _c;
const isBrowser = typeof navigator !== 'undefined' &&
((_b = (_a = global.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node) === undefined && // Node.js v21 adds `navigator`
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore don't have Bun types
((_c = global.Bun) === null || _c === void 0 ? void 0 : _c.version) === undefined; // Bun (bun.sh) defines `navigator`
if (!isBrowser) {

@@ -27,0 +32,0 @@ return Resource.empty();

@@ -18,3 +18,3 @@ /*

import { getEnv } from '@opentelemetry/core';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
import { Resource } from '../Resource';

@@ -62,3 +62,3 @@ /**

if (serviceName) {
attributes[SemanticResourceAttributes.SERVICE_NAME] = serviceName;
attributes[SEMRESATTRS_SERVICE_NAME] = serviceName;
}

@@ -65,0 +65,0 @@ return new Resource(attributes);

export * from './default-service-name';
export * from './HostDetector';
export * from './HostDetectorSync';
export * from './OSDetector';
export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIdDetectorSync';
//# sourceMappingURL=index.d.ts.map

@@ -18,7 +18,8 @@ /*

export * from './HostDetector';
export * from './HostDetectorSync';
export * from './OSDetector';
export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIdDetectorSync';
//# sourceMappingURL=index.js.map
export * from './default-service-name';
export * from './HostDetector';
export * from './HostDetectorSync';
export * from './OSDetector';
export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIdDetectorSync';
//# sourceMappingURL=index.d.ts.map

@@ -18,7 +18,8 @@ /*

export * from './HostDetector';
export * from './HostDetectorSync';
export * from './OSDetector';
export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIdDetectorSync';
//# sourceMappingURL=index.js.map

@@ -17,3 +17,3 @@ /*

import { diag } from '@opentelemetry/api';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import { SEMRESATTRS_SERVICE_NAME, SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, SEMRESATTRS_TELEMETRY_SDK_NAME, SEMRESATTRS_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions';
import { SDK_INFO } from '@opentelemetry/core';

@@ -58,6 +58,6 @@ import { defaultServiceName } from './platform';

return new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: defaultServiceName(),
[SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE]: SDK_INFO[SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE],
[SemanticResourceAttributes.TELEMETRY_SDK_NAME]: SDK_INFO[SemanticResourceAttributes.TELEMETRY_SDK_NAME],
[SemanticResourceAttributes.TELEMETRY_SDK_VERSION]: SDK_INFO[SemanticResourceAttributes.TELEMETRY_SDK_VERSION],
[SEMRESATTRS_SERVICE_NAME]: defaultServiceName(),
[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]: SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],
[SEMRESATTRS_TELEMETRY_SDK_NAME]: SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_NAME],
[SEMRESATTRS_TELEMETRY_SDK_VERSION]: SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_VERSION],
});

@@ -64,0 +64,0 @@ }

@@ -1,2 +0,2 @@

export declare const VERSION = "1.23.0";
export declare const VERSION = "1.24.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export const VERSION = '1.23.0';
export const VERSION = '1.24.0';
//# sourceMappingURL=version.js.map

@@ -27,3 +27,8 @@ "use strict";

detect(config) {
const isBrowser = typeof navigator !== 'undefined';
var _a, _b, _c;
const isBrowser = typeof navigator !== 'undefined' &&
((_b = (_a = global.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node) === undefined && // Node.js v21 adds `navigator`
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore don't have Bun types
((_c = global.Bun) === null || _c === void 0 ? void 0 : _c.version) === undefined; // Bun (bun.sh) defines `navigator`
if (!isBrowser) {

@@ -30,0 +35,0 @@ return __1.Resource.empty();

@@ -64,3 +64,3 @@ "use strict";

if (serviceName) {
attributes[semantic_conventions_1.SemanticResourceAttributes.SERVICE_NAME] = serviceName;
attributes[semantic_conventions_1.SEMRESATTRS_SERVICE_NAME] = serviceName;
}

@@ -67,0 +67,0 @@ return new Resource_1.Resource(attributes);

export * from './default-service-name';
export * from './HostDetector';
export * from './HostDetectorSync';
export * from './OSDetector';
export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIdDetectorSync';
//# sourceMappingURL=index.d.ts.map

@@ -30,7 +30,8 @@ "use strict";

__exportStar(require("./HostDetector"), exports);
__exportStar(require("./HostDetectorSync"), exports);
__exportStar(require("./OSDetector"), exports);
__exportStar(require("./HostDetectorSync"), exports);
__exportStar(require("./OSDetectorSync"), exports);
__exportStar(require("./ProcessDetector"), exports);
__exportStar(require("./ProcessDetectorSync"), exports);
__exportStar(require("./ServiceInstanceIdDetectorSync"), exports);
//# sourceMappingURL=index.js.map
export * from './default-service-name';
export * from './HostDetector';
export * from './HostDetectorSync';
export * from './OSDetector';
export * from './HostDetectorSync';
export * from './OSDetectorSync';
export * from './ProcessDetector';
export * from './ProcessDetectorSync';
export * from './ServiceInstanceIdDetectorSync';
//# sourceMappingURL=index.d.ts.map

@@ -30,7 +30,8 @@ "use strict";

__exportStar(require("./HostDetector"), exports);
__exportStar(require("./HostDetectorSync"), exports);
__exportStar(require("./OSDetector"), exports);
__exportStar(require("./HostDetectorSync"), exports);
__exportStar(require("./OSDetectorSync"), exports);
__exportStar(require("./ProcessDetector"), exports);
__exportStar(require("./ProcessDetectorSync"), exports);
__exportStar(require("./ServiceInstanceIdDetectorSync"), exports);
//# sourceMappingURL=index.js.map

@@ -60,6 +60,6 @@ "use strict";

return new Resource({
[semantic_conventions_1.SemanticResourceAttributes.SERVICE_NAME]: (0, platform_1.defaultServiceName)(),
[semantic_conventions_1.SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE]: core_1.SDK_INFO[semantic_conventions_1.SemanticResourceAttributes.TELEMETRY_SDK_LANGUAGE],
[semantic_conventions_1.SemanticResourceAttributes.TELEMETRY_SDK_NAME]: core_1.SDK_INFO[semantic_conventions_1.SemanticResourceAttributes.TELEMETRY_SDK_NAME],
[semantic_conventions_1.SemanticResourceAttributes.TELEMETRY_SDK_VERSION]: core_1.SDK_INFO[semantic_conventions_1.SemanticResourceAttributes.TELEMETRY_SDK_VERSION],
[semantic_conventions_1.SEMRESATTRS_SERVICE_NAME]: (0, platform_1.defaultServiceName)(),
[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE]: core_1.SDK_INFO[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],
[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_NAME]: core_1.SDK_INFO[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_NAME],
[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_VERSION]: core_1.SDK_INFO[semantic_conventions_1.SEMRESATTRS_TELEMETRY_SDK_VERSION],
});

@@ -66,0 +66,0 @@ }

@@ -1,2 +0,2 @@

export declare const VERSION = "1.23.0";
export declare const VERSION = "1.24.0";
//# sourceMappingURL=version.d.ts.map

@@ -20,3 +20,3 @@ "use strict";

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '1.23.0';
exports.VERSION = '1.24.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/resources",
"version": "1.23.0",
"version": "1.24.0",
"description": "OpenTelemetry SDK resources",

@@ -94,8 +94,8 @@ "main": "build/src/index.js",

"dependencies": {
"@opentelemetry/core": "1.23.0",
"@opentelemetry/semantic-conventions": "1.23.0"
"@opentelemetry/core": "1.24.0",
"@opentelemetry/semantic-conventions": "1.24.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources",
"sideEffects": false,
"gitHead": "5231aa255047fbc6ee3d6a299f4423ab2f8a5fbc"
"gitHead": "3ab4f765d8d696327b7d139ae6a45e7bd7edd924"
}

@@ -19,7 +19,7 @@ # OpenTelemetry Resources Util

```typescript
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
import { Resource } from '@opentelemetry/resources';
const resource = new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: 'api-service',
[SEMRESATTRS_SERVICE_NAME]: 'api-service',
});

@@ -26,0 +26,0 @@

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc