@opencensus/exporter-stackdriver
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -16,7 +16,8 @@ /** | ||
*/ | ||
import { classes, types } from '@opencensus/opencensus-core'; | ||
import { Exporter, ExporterBuffer, ExporterConfig, RootSpan, SpanContext } from '@opencensus/core'; | ||
import { Logger } from '@opencensus/core'; | ||
/** | ||
* Options for stackdriver configuration | ||
*/ | ||
export interface StackdriverExporterOptions extends types.ExporterConfig { | ||
export interface StackdriverExporterOptions extends ExporterConfig { | ||
/** | ||
@@ -28,7 +29,7 @@ * projectId project id defined to stackdriver | ||
/** Format and sends span information to Stackdriver */ | ||
export declare class StackdriverTraceExporter implements types.Exporter { | ||
export declare class StackdriverTraceExporter implements Exporter { | ||
projectId: string; | ||
exporterBuffer: classes.ExporterBuffer; | ||
logger: types.Logger; | ||
failBuffer: types.SpanContext[]; | ||
exporterBuffer: ExporterBuffer; | ||
logger: Logger; | ||
failBuffer: SpanContext[]; | ||
constructor(options: StackdriverExporterOptions); | ||
@@ -39,5 +40,5 @@ /** | ||
*/ | ||
onEndSpan(root: types.RootSpan): void; | ||
onEndSpan(root: RootSpan): void; | ||
/** Not used for this exporter */ | ||
onStartSpan(root: types.RootSpan): void; | ||
onStartSpan(root: RootSpan): void; | ||
/** | ||
@@ -47,3 +48,3 @@ * Publishes a list of root spans to Stackdriver. | ||
*/ | ||
publish(rootSpans: types.RootSpan[]): Promise<any>; | ||
publish(rootSpans: RootSpan[]): Promise<any>; | ||
/** | ||
@@ -50,0 +51,0 @@ * Translates root span data to Stackdriver's trace format. |
@@ -18,3 +18,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const opencensus_core_1 = require("@opencensus/opencensus-core"); | ||
const core_1 = require("@opencensus/core"); | ||
const core_2 = require("@opencensus/core"); | ||
const google_auth_library_1 = require("google-auth-library"); | ||
@@ -29,4 +30,4 @@ const googleapis_1 = require("googleapis"); | ||
this.projectId = options.projectId; | ||
this.logger = options.logger || opencensus_core_1.logger.logger(); | ||
this.exporterBuffer = new opencensus_core_1.classes.ExporterBuffer(this, options); | ||
this.logger = options.logger || core_2.logger.logger(); | ||
this.exporterBuffer = new core_1.ExporterBuffer(this, options); | ||
} | ||
@@ -64,3 +65,3 @@ /** | ||
translateTrace(root) { | ||
const spanList = root.spans.map(span => this.translateSpan(span)); | ||
const spanList = root.spans.map((span) => this.translateSpan(span)); | ||
spanList.push(this.translateSpan(root)); | ||
@@ -67,0 +68,0 @@ return { projectId: this.projectId, traceId: root.traceId, spans: spanList }; |
{ | ||
"name": "@opencensus/exporter-stackdriver", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "OpenCensus Exporter Stackdriver allows user to send collected traces to Stackdriver", | ||
@@ -53,3 +53,3 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opencensus/opencensus-core": "^0.0.2", | ||
"@opencensus/core": "^0.0.3", | ||
"google-auth-library": "^1.5.0", | ||
@@ -56,0 +56,0 @@ "googleapis": "27.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
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
23446
232
+ Added@opencensus/core@^0.0.3
+ Added@opencensus/core@0.0.3(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedhdr-histogram-js@1.2.0(transitive)
+ Addedpako@1.0.11(transitive)
- Removed@opencensus/opencensus-core@^0.0.2
- Removed@opencensus/opencensus-core@0.0.2(transitive)
- Removeddebug@3.2.7(transitive)
- Removedintercept-stdout@0.1.2(transitive)
- Removedlodash._arraycopy@3.0.0(transitive)
- Removedlodash._basevalues@3.0.0(transitive)
- Removedlodash._getnative@3.9.1(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.keys@3.1.2(transitive)
- Removedlodash.toarray@3.0.2(transitive)
- Removedms@2.1.3(transitive)