Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 7161ccf

Browse files
committed
Add interfaces
2 parents 994b9bc + 5c853bf commit 7161ccf

3 files changed

Lines changed: 6 additions & 125 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export interface ExporterOptions {
2+
3+
}

packages/opencensus-core/src/trace/model/tracer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ import {Trace} from './trace'
1919
import {Span} from './span'
2020
import {PluginLoader} from './plugins/pluginloader'
2121
import {debug} from '../internal/util'
22-
import {Stackdriver} from '../exporters/stackdriver'
22+
import {Stackdriver} from '../exporters/stackdriver/stackdriver'
23+
import {StackdriverOptions} from '../exporters/stackdriver/options'
2324

2425
export type Func<T> = (...args: any[]) => T;
2526

@@ -39,7 +40,7 @@ export class TraceManager {
3940
this._active = false;
4041
this.contextManager = cls.createNamespace();
4142
this.pluginLoader = new PluginLoader(this);
42-
this.exporter = new Stackdriver('opencensus-cesar');
43+
this.exporter = new Stackdriver(new StackdriverOptions('opencensus-cesar'));
4344
}
4445

4546
public get currentTrace(): Trace {

src/exporters/stackdriver.ts

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)