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

@opentelemetry/resource-detector-azure

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/resource-detector-azure - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

5

build/src/detectors/AzureVmDetector.js

@@ -20,2 +20,4 @@ "use strict";

const http = require("http");
const api_1 = require("@opentelemetry/api");
const core_1 = require("@opentelemetry/core");
const resources_1 = require("@opentelemetry/resources");

@@ -30,3 +32,4 @@ const semantic_conventions_1 = require("@opentelemetry/semantic-conventions");

detect() {
return new resources_1.Resource({}, this.getAzureVmMetadata());
const attributes = api_1.context.with((0, core_1.suppressTracing)(api_1.context.active()), () => this.getAzureVmMetadata());
return new resources_1.Resource({}, attributes);
}

@@ -33,0 +36,0 @@ async getAzureVmMetadata() {

6

build/src/detectors/index.d.ts

@@ -1,4 +0,4 @@

export * from './AzureAppServiceDetector';
export * from './AzureFunctionsDetector';
export * from './AzureVmDetector';
export { azureAppServiceDetector } from './AzureAppServiceDetector';
export { azureFunctionsDetector } from './AzureFunctionsDetector';
export { azureVmDetector } from './AzureVmDetector';
//# sourceMappingURL=index.d.ts.map

@@ -17,16 +17,10 @@ "use strict";

*/
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" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./AzureAppServiceDetector"), exports);
__exportStar(require("./AzureFunctionsDetector"), exports);
__exportStar(require("./AzureVmDetector"), exports);
exports.azureVmDetector = exports.azureFunctionsDetector = exports.azureAppServiceDetector = void 0;
var AzureAppServiceDetector_1 = require("./AzureAppServiceDetector");
Object.defineProperty(exports, "azureAppServiceDetector", { enumerable: true, get: function () { return AzureAppServiceDetector_1.azureAppServiceDetector; } });
var AzureFunctionsDetector_1 = require("./AzureFunctionsDetector");
Object.defineProperty(exports, "azureFunctionsDetector", { enumerable: true, get: function () { return AzureFunctionsDetector_1.azureFunctionsDetector; } });
var AzureVmDetector_1 = require("./AzureVmDetector");
Object.defineProperty(exports, "azureVmDetector", { enumerable: true, get: function () { return AzureVmDetector_1.azureVmDetector; } });
//# sourceMappingURL=index.js.map

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

export * from './detectors';
export { azureAppServiceDetector, azureFunctionsDetector, azureVmDetector, } from './detectors';
//# sourceMappingURL=index.d.ts.map

@@ -17,14 +17,8 @@ "use strict";

*/
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" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./detectors"), exports);
exports.azureVmDetector = exports.azureFunctionsDetector = exports.azureAppServiceDetector = void 0;
var detectors_1 = require("./detectors");
Object.defineProperty(exports, "azureAppServiceDetector", { enumerable: true, get: function () { return detectors_1.azureAppServiceDetector; } });
Object.defineProperty(exports, "azureFunctionsDetector", { enumerable: true, get: function () { return detectors_1.azureFunctionsDetector; } });
Object.defineProperty(exports, "azureVmDetector", { enumerable: true, get: function () { return detectors_1.azureVmDetector; } });
//# sourceMappingURL=index.js.map
{
"name": "@opentelemetry/resource-detector-azure",
"version": "0.2.9",
"version": "0.2.10",
"description": "OpenTelemetry SDK resource detector for Azure",

@@ -38,7 +38,7 @@ "main": "build/src/index.js",

"@types/node": "18.6.5",
"@types/sinon": "10.0.18",
"@types/sinon": "10.0.20",
"mocha": "7.2.0",
"nock": "13.3.3",
"nyc": "15.1.0",
"rimraf": "5.0.5",
"rimraf": "5.0.10",
"ts-mocha": "10.0.0",

@@ -51,2 +51,3 @@ "typescript": "4.4.4"

"dependencies": {
"@opentelemetry/core": "^1.25.1",
"@opentelemetry/resources": "^1.10.1",

@@ -56,3 +57,3 @@ "@opentelemetry/semantic-conventions": "^1.22.0"

"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/detectors/node/opentelemetry-resource-detector-azure#readme",
"gitHead": "93e7aab9a38e22c9ef6c0a9053f817e7e52a687c"
"gitHead": "19454560b49b669c8f9c0cca9fcc3308b415f2b1"
}

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