Socket
Socket
Sign inDemoInstall

@opentelemetry/resources

Package Overview
Dependencies
Maintainers
3
Versions
168
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.8.3 to 0.9.0

README.md

20

build/src/constants.d.ts

@@ -1,21 +0,1 @@

/**
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Semantic conventions for Resources
* https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/data-resource-semantic-conventions.md
*/
/** Attributes defining a running environment (e.g. Cloud, Data Center). */
export declare const CLOUD_RESOURCE: {

@@ -22,0 +2,0 @@ /** Name of the cloud provider. Example values are aws, azure, gcp. */

12

build/src/constants.js
"use strict";
/**
* Copyright 2020, OpenTelemetry Authors
Object.defineProperty(exports, "__esModule", { value: true });
exports.SERVICE_RESOURCE = exports.TELEMETRY_SDK_RESOURCE = exports.K8S_RESOURCE = exports.HOST_RESOURCE = exports.CONTAINER_RESOURCE = exports.CLOUD_RESOURCE = void 0;
/*
* Copyright The OpenTelemetry Authors
*

@@ -17,8 +19,2 @@ * Licensed under the Apache License, Version 2.0 (the "License");

*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Semantic conventions for Resources
* https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/data-resource-semantic-conventions.md
*/
/** Attributes defining a running environment (e.g. Cloud, Data Center). */
exports.CLOUD_RESOURCE = {

@@ -25,0 +21,0 @@ /** Name of the cloud provider. Example values are aws, azure, gcp. */

@@ -1,16 +0,1 @@

/**
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './Resource';

@@ -17,0 +2,0 @@ export * from './platform';

"use strict";
/**
* Copyright 2020, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -17,9 +17,17 @@ * Licensed under the Apache License, Version 2.0 (the "License");

*/
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./Resource"));
__export(require("./platform"));
__export(require("./constants"));
__exportStar(require("./Resource"), exports);
__exportStar(require("./platform"), exports);
__exportStar(require("./constants"), exports);
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map

@@ -1,16 +0,1 @@

/**
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Resource } from '../../Resource';

@@ -17,0 +2,0 @@ /**

"use strict";
/**
* Copyright 2020, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -18,2 +18,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

Object.defineProperty(exports, "__esModule", { value: true });
exports.detectResources = void 0;
const Resource_1 = require("../../Resource");

@@ -20,0 +21,0 @@ /**

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

/*!
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './detect-resources';
//# sourceMappingURL=index.d.ts.map
"use strict";
/*!
* Copyright 2020, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -17,7 +17,14 @@ * Licensed under the Apache License, Version 2.0 (the "License");

*/
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./detect-resources"));
__exportStar(require("./detect-resources"), exports);
//# sourceMappingURL=index.js.map

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

/*!
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './node';
//# sourceMappingURL=index.d.ts.map
"use strict";
/*!
* Copyright 2020, OpenTelemetry Authors
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
/*
* Copyright The OpenTelemetry Authors
*

@@ -17,10 +28,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

*/
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
// Use the node platform by default. The "browser" field of package.json is used
// to override this file to use `./browser/index.ts` when packaged with
// webpack, Rollup, etc.
__export(require("./node"));
__exportStar(require("./node"), exports);
//# sourceMappingURL=index.js.map

@@ -1,16 +0,1 @@

/**
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Resource } from '../../Resource';

@@ -17,0 +2,0 @@ /**

"use strict";
/**
* Copyright 2020, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -18,2 +18,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

Object.defineProperty(exports, "__esModule", { value: true });
exports.detectResources = void 0;
const Resource_1 = require("../../Resource");

@@ -20,0 +21,0 @@ const detectors_1 = require("./detectors");

@@ -1,16 +0,1 @@

/*!
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Resource } from '../../../Resource';

@@ -17,0 +2,0 @@ import { Detector } from '../../../types';

"use strict";
/*!
* Copyright 2020, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -18,2 +18,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

Object.defineProperty(exports, "__esModule", { value: true });
exports.awsEc2Detector = void 0;
const http = require("http");

@@ -20,0 +21,0 @@ const Resource_1 = require("../../../Resource");

@@ -1,16 +0,1 @@

/*!
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Resource } from '../../../Resource';

@@ -17,0 +2,0 @@ import { Detector } from '../../../types';

"use strict";
/*!
* Copyright 2020, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -18,2 +18,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

Object.defineProperty(exports, "__esModule", { value: true });
exports.envDetector = void 0;
const Resource_1 = require("../../../Resource");

@@ -20,0 +21,0 @@ /**

@@ -1,16 +0,1 @@

/*!
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Resource } from '../../../Resource';

@@ -17,0 +2,0 @@ import { Detector } from '../../../types';

"use strict";
/*!
* Copyright 2020, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -18,2 +18,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

Object.defineProperty(exports, "__esModule", { value: true });
exports.gcpDetector = void 0;
const os = require("os");

@@ -20,0 +21,0 @@ const gcpMetadata = require("gcp-metadata");

@@ -1,16 +0,1 @@

/*!
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { awsEc2Detector } from './AwsEc2Detector';

@@ -17,0 +2,0 @@ export { envDetector } from './EnvDetector';

"use strict";
/*!
* Copyright 2020, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -19,7 +19,7 @@ * Licensed under the Apache License, Version 2.0 (the "License");

var AwsEc2Detector_1 = require("./AwsEc2Detector");
exports.awsEc2Detector = AwsEc2Detector_1.awsEc2Detector;
Object.defineProperty(exports, "awsEc2Detector", { enumerable: true, get: function () { return AwsEc2Detector_1.awsEc2Detector; } });
var EnvDetector_1 = require("./EnvDetector");
exports.envDetector = EnvDetector_1.envDetector;
Object.defineProperty(exports, "envDetector", { enumerable: true, get: function () { return EnvDetector_1.envDetector; } });
var GcpDetector_1 = require("./GcpDetector");
exports.gcpDetector = GcpDetector_1.gcpDetector;
Object.defineProperty(exports, "gcpDetector", { enumerable: true, get: function () { return GcpDetector_1.gcpDetector; } });
//# sourceMappingURL=index.js.map

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

/*!
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './detect-resources';
//# sourceMappingURL=index.d.ts.map
"use strict";
/*!
* Copyright 2020, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -17,7 +17,14 @@ * Licensed under the Apache License, Version 2.0 (the "License");

*/
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./detect-resources"));
__exportStar(require("./detect-resources"), exports);
//# sourceMappingURL=index.js.map

@@ -1,16 +0,1 @@

/*!
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { ResourceLabels } from './types';

@@ -17,0 +2,0 @@ /**

"use strict";
/*!
* Copyright 2020, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -18,2 +18,3 @@ * Licensed under the Apache License, Version 2.0 (the "License");

Object.defineProperty(exports, "__esModule", { value: true });
exports.Resource = void 0;
const core_1 = require("@opentelemetry/core");

@@ -20,0 +21,0 @@ const constants_1 = require("./constants");

@@ -1,16 +0,1 @@

/**
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Resource } from './Resource';

@@ -17,0 +2,0 @@ /** Interface for Resource labels */

"use strict";
/**
* Copyright 2020, OpenTelemetry Authors
/*
* Copyright The OpenTelemetry Authors
*

@@ -5,0 +5,0 @@ * Licensed under the Apache License, Version 2.0 (the "License");

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

export declare const VERSION = "0.8.3";
export declare const VERSION = "0.9.0";
//# sourceMappingURL=version.d.ts.map
"use strict";
/*
* Copyright 2020, OpenTelemetry Authors
* Copyright The OpenTelemetry Authors
*

@@ -18,4 +18,5 @@ * Licensed under the Apache License, Version 2.0 (the "License");

Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.8.3';
exports.VERSION = '0.9.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/resources",
"version": "0.8.3",
"version": "0.9.0",
"description": "OpenTelemetry SDK resources",

@@ -47,21 +47,21 @@ "main": "build/src/index.js",

"devDependencies": {
"@types/mocha": "^7.0.0",
"@types/node": "^14.0.5",
"@types/sinon": "^7.0.13",
"codecov": "^3.6.1",
"gts": "^2.0.0",
"mocha": "^7.1.2",
"nock": "^12.0.2",
"nyc": "^15.0.0",
"rimraf": "^3.0.0",
"sinon": "^7.5.0",
"ts-mocha": "^7.0.0",
"ts-node": "^8.6.2",
"typescript": "3.7.2"
"@types/mocha": "7.0.2",
"@types/node": "14.0.13",
"@types/sinon": "9.0.4",
"codecov": "3.7.0",
"gts": "2.0.2",
"mocha": "7.2.0",
"nock": "12.0.3",
"nyc": "15.1.0",
"rimraf": "3.0.2",
"sinon": "9.0.2",
"ts-mocha": "7.0.0",
"ts-node": "8.10.2",
"typescript": "3.9.5"
},
"dependencies": {
"@opentelemetry/api": "^0.8.3",
"@opentelemetry/core": "^0.8.3",
"@opentelemetry/api": "^0.9.0",
"@opentelemetry/core": "^0.9.0",
"gcp-metadata": "^3.5.0"
}
}
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