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

@opencensus/exporter-stackdriver

Package Overview
Dependencies
Maintainers
6
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencensus/exporter-stackdriver - npm Package Compare versions

Comparing version 0.0.22 to 0.1.0

4

build/src/common-utils.js

@@ -18,6 +18,7 @@ "use strict";

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -27,2 +28,3 @@ });

Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultResource = void 0;
const resource = require("@opencensus/resource-util");

@@ -29,0 +31,0 @@ const resource_util_1 = require("@opencensus/resource-util");

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

*/
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("./stackdriver-cloudtrace"));
__export(require("./stackdriver-monitoring"));
__export(require("./types"));
__exportStar(require("./stackdriver-cloudtrace"), exports);
__exportStar(require("./stackdriver-monitoring"), exports);
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map

@@ -18,6 +18,7 @@ "use strict";

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -27,2 +28,3 @@ });

Object.defineProperty(exports, "__esModule", { value: true });
exports.getResourceLabels = exports.stringToTruncatableString = exports.createTimeEvents = exports.createAttributes = exports.createLinks = void 0;
const coreTypes = require("@opencensus/core");

@@ -29,0 +31,0 @@ const types = require("./types");

@@ -18,6 +18,7 @@ "use strict";

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -27,2 +28,3 @@ });

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

@@ -46,3 +48,6 @@ const core_2 = require("@opencensus/core");

if (options.credentials) {
auth = new google_auth_library_1.GoogleAuth({ credentials: options.credentials });
auth = new google_auth_library_1.GoogleAuth({
credentials: options.credentials,
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
});
}

@@ -154,5 +159,3 @@ }

try {
const client = yield auth.getClient({
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
});
const client = yield auth.getClient();
return {

@@ -159,0 +162,0 @@ name: `projects/${this.projectId}`,

@@ -18,2 +18,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TEST_ONLY = exports.createTimeSeriesList = exports.createMetricDescriptorData = exports.OPENCENSUS_TASK_VALUE_DEFAULT = void 0;
const core_1 = require("@opencensus/core");

@@ -20,0 +21,0 @@ const os = require("os");

@@ -18,6 +18,7 @@ "use strict";

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -27,2 +28,3 @@ });

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

@@ -62,3 +64,6 @@ const google_auth_library_1 = require("google-auth-library");

if (options.credentials) {
auth = new google_auth_library_1.GoogleAuth({ credentials: options.credentials });
auth = new google_auth_library_1.GoogleAuth({
credentials: options.credentials,
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
});
}

@@ -197,5 +202,3 @@ }

return __awaiter(this, void 0, void 0, function* () {
const client = yield auth.getClient({
scopes: ['https://www.googleapis.com/auth/cloud-platform'],
});
const client = yield auth.getClient();
return client;

@@ -219,6 +222,6 @@ });

}
exports.StackdriverStatsExporter = StackdriverStatsExporter;
StackdriverStatsExporter.DEFAULT_DISPLAY_NAME_PREFIX = 'OpenCensus';
StackdriverStatsExporter.CUSTOM_OPENCENSUS_DOMAIN = 'custom.googleapis.com/opencensus';
StackdriverStatsExporter.PERIOD = 60000;
exports.StackdriverStatsExporter = StackdriverStatsExporter;
//# sourceMappingURL=stackdriver-monitoring.js.map

@@ -18,2 +18,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ValueType = exports.MetricKind = exports.LinkType = exports.Type = void 0;
var Type;

@@ -20,0 +21,0 @@ (function (Type) {

{
"name": "@opencensus/exporter-stackdriver",
"version": "0.0.22",
"version": "0.1.0",
"description": "OpenCensus Exporter Stackdriver allows user to send collected traces to Stackdriver",

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

"engines": {
"node": ">=8"
"node": ">=10"
},

@@ -55,20 +55,21 @@ "files": [

"devDependencies": {
"@types/mocha": "^7.0.0",
"@types/nock": "^10.0.0",
"@types/node": "^10.12.12",
"codecov": "^3.6.2",
"gts": "^1.0.0",
"mocha": "^7.0.0",
"nock": "^10.0.0",
"nyc": "^14.0.0",
"ts-mocha": "^7.0.0",
"ts-node": "^8.0.0",
"typescript": "~3.1.0"
"@types/continuation-local-storage": "3.2.2",
"@types/mocha": "8.2.3",
"@types/nock": "10.0.3",
"@types/node": "12.20.16",
"codecov": "3.8.3",
"gts": "1.1.2",
"mocha": "7.2.0",
"nock": "10.0.6",
"nyc": "15.1.0",
"ts-mocha": "8.0.0",
"ts-node": "8.10.2",
"typescript": "3.9.10"
},
"dependencies": {
"@opencensus/core": "^0.0.22",
"@opencensus/resource-util": "^0.0.22",
"google-auth-library": "^4.0.0",
"googleapis": "^40.0.0"
"@opencensus/core": "^0.1.0",
"@opencensus/resource-util": "^0.1.0",
"google-auth-library": "^6.1.6",
"googleapis": "67.0.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