@opencensus/exporter-stackdriver
Advanced tools
Comparing version 0.0.22 to 0.1.0
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79489
1547
12
1
+ Added@opencensus/core@0.1.0(transitive)
+ Added@opencensus/resource-util@0.1.0(transitive)
+ Addedgaxios@4.3.3(transitive)
+ Addedgcp-metadata@4.3.1(transitive)
+ Addedgoogle-auth-library@6.1.6(transitive)
+ Addedgoogle-p12-pem@3.1.4(transitive)
+ Addedgoogleapis@67.0.0(transitive)
+ Addedgoogleapis-common@4.4.3(transitive)
+ Addedgtoken@5.3.2(transitive)
+ Addedjson-bigint@1.0.0(transitive)
+ Addedjwa@2.0.0(transitive)
+ Addedjws@4.0.0(transitive)
+ Addedlru-cache@6.0.0(transitive)
+ Addednode-forge@1.3.1(transitive)
+ Addedyallist@4.0.0(transitive)
- Removed@opencensus/core@0.0.22(transitive)
- Removed@opencensus/resource-util@0.0.22(transitive)
- Removedgaxios@2.3.4(transitive)
- Removedgcp-metadata@2.0.43.5.0(transitive)
- Removedgoogle-auth-library@4.2.6(transitive)
- Removedgoogle-p12-pem@2.0.5(transitive)
- Removedgoogleapis@40.0.1(transitive)
- Removedgoogleapis-common@2.0.4(transitive)
- Removedgtoken@3.0.2(transitive)
- Removedjson-bigint@0.3.1(transitive)
- Removedjwa@1.4.1(transitive)
- Removedjws@3.2.2(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedmime@2.6.0(transitive)
- Removednode-forge@0.10.0(transitive)
- Removeduuid@3.4.0(transitive)
- Removedyallist@3.1.1(transitive)
Updated@opencensus/core@^0.1.0
Updatedgoogle-auth-library@^6.1.6
Updatedgoogleapis@67.0.0