Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/resources

Package Overview
Dependencies
Maintainers
4
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/resources - npm Package Compare versions

Comparing version 0.16.0 to 0.16.1-alpha.10

12

build/src/constants.d.ts

@@ -12,3 +12,3 @@ export declare const CLOUD_RESOURCE: {

/**
* Attributes defining a compute unit (e.g. Container, Process, Lambda
* SpanAttributes defining a compute unit (e.g. Container, Process, Lambda
* Function).

@@ -26,3 +26,3 @@ * */

};
/** Attributes defining a computing instance (e.g. host). */
/** SpanAttributes defining a computing instance (e.g. host). */
export declare const HOST_RESOURCE: {

@@ -48,3 +48,3 @@ /**

};
/** Attributes defining a deployment service (e.g. Kubernetes). */
/** SpanAttributes defining a deployment service (e.g. Kubernetes). */
export declare const K8S_RESOURCE: {

@@ -60,3 +60,3 @@ /** The name of the cluster that the pod is running in. */

};
/** Attributes describing the telemetry library. */
/** SpanAttributes describing the telemetry library. */
export declare const TELEMETRY_SDK_RESOURCE: {

@@ -70,3 +70,3 @@ /** The name of the telemetry library. */

};
/** Attributes describing a service instance. */
/** SpanAttributes describing a service instance. */
export declare const SERVICE_RESOURCE: {

@@ -82,3 +82,3 @@ /** Logical name of the service. */

};
/** Attributes describing a Process. */
/** SpanAttributes describing a Process. */
export declare const PROCESS_RESOURCE: {

@@ -85,0 +85,0 @@ /** A command which launced this proces. */

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

/**
* Attributes defining a compute unit (e.g. Container, Process, Lambda
* SpanAttributes defining a compute unit (e.g. Container, Process, Lambda
* Function).

@@ -44,3 +44,3 @@ * */

};
/** Attributes defining a computing instance (e.g. host). */
/** SpanAttributes defining a computing instance (e.g. host). */
exports.HOST_RESOURCE = {

@@ -66,3 +66,3 @@ /**

};
/** Attributes defining a deployment service (e.g. Kubernetes). */
/** SpanAttributes defining a deployment service (e.g. Kubernetes). */
exports.K8S_RESOURCE = {

@@ -78,3 +78,3 @@ /** The name of the cluster that the pod is running in. */

};
/** Attributes describing the telemetry library. */
/** SpanAttributes describing the telemetry library. */
exports.TELEMETRY_SDK_RESOURCE = {

@@ -88,3 +88,3 @@ /** The name of the telemetry library. */

};
/** Attributes describing a service instance. */
/** SpanAttributes describing a service instance. */
exports.SERVICE_RESOURCE = {

@@ -100,3 +100,3 @@ /** Logical name of the service. */

};
/** Attributes describing a Process. */
/** SpanAttributes describing a Process. */
exports.PROCESS_RESOURCE = {

@@ -103,0 +103,0 @@ /** A command which launced this proces. */

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

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -28,0 +28,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -25,5 +25,6 @@ "use strict";

*/
exports.detectResources = async () => {
const detectResources = async () => {
return Resource_1.Resource.createTelemetrySDKResource();
};
exports.detectResources = detectResources;
//# sourceMappingURL=detect-resources.js.map

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

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -28,0 +28,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

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

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -28,0 +28,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

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

*/
exports.detectResources = async (config = {}) => {
const detectResources = async (config = {}) => {
const internalConfig = Object.assign({

@@ -51,2 +51,3 @@ logger: new api_1.NoopLogger(),

};
exports.detectResources = detectResources;
/**

@@ -53,0 +54,0 @@ * Writes debug information about the detected resources to the logger defined in the resource detection config, if one is provided.

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

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -28,0 +28,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

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

var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};

@@ -28,0 +28,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

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

return this;
// Attributes from resource overwrite attributes from other resource.
// SpanAttributes from resource overwrite attributes from other resource.
const mergedAttributes = Object.assign({}, other.attributes, this.attributes);

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

{
"name": "@opentelemetry/resources",
"version": "0.16.0",
"version": "0.16.1-alpha.10+cacbbdca",
"description": "OpenTelemetry SDK resources",

@@ -50,3 +50,3 @@ "main": "build/src/index.js",

"codecov": "3.8.1",
"gts": "2.0.2",
"gts": "3.1.0",
"mocha": "7.2.0",

@@ -59,9 +59,9 @@ "nock": "12.0.3",

"ts-node": "9.1.1",
"typescript": "3.9.7"
"typescript": "4.1.3"
},
"dependencies": {
"@opentelemetry/api": "^0.16.0",
"@opentelemetry/core": "^0.16.0"
"@opentelemetry/core": "^0.16.1-alpha.10+cacbbdca"
},
"gitHead": "e68863f8e63854b08ad13fb54677294ac6d6b681"
"gitHead": "cacbbdca0e89d31e2e0b10a8ff5fb86d7a714906"
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc