Skip to content

Commit

Permalink
fix: prevent crash when SDT exporter constructed without options (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan authored Feb 12, 2020
1 parent b1fe2c8 commit 9b2737a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class StackdriverTraceExporter implements SpanExporter {

private static readonly _cloudTrace = google.cloudtrace('v2');

constructor(options: StackdriverExporterOptions) {
constructor(options: StackdriverExporterOptions = {}) {
this._logger = options.logger || new NoopLogger();

this._auth = new GoogleAuth({
Expand Down

0 comments on commit 9b2737a

Please sign in to comment.