Skip to content

Commit

Permalink
Update packages/opentelemetry-exporter-zipkin/src/zipkin.ts
Browse files Browse the repository at this point in the history
making config object optional for zipkin

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
  • Loading branch information
rezakrimi and dyladan authored Jun 3, 2020
1 parent c0b56d3 commit 42de702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/opentelemetry-exporter-zipkin/src/zipkin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class ZipkinExporter implements SpanExporter {
private _serviceName?: string;
private _isShutdown: boolean;

constructor(config: zipkinTypes.ExporterConfig) {
constructor(config: zipkinTypes.ExporterConfig = {}) {
const urlStr = config.url || ZipkinExporter.DEFAULT_URL;
const urlOpts = url.parse(urlStr);

Expand Down

0 comments on commit 42de702

Please sign in to comment.