This repository was archived by the owner on Oct 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
packages/opencensus-core/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export interface ExporterOptions {
2+
3+ }
Original file line number Diff line number Diff line change 1+ import { ExporterOptions } from "../exporterOptions" ;
2+
3+ export class StackdriveOptions implements ExporterOptions {
4+ projectId : string ;
5+
6+ constructor ( projectId : string ) {
7+ this . projectId = projectId ;
8+ }
9+ }
Original file line number Diff line number Diff line change 11import { debug } from '../internal/util'
22import { google } from 'googleapis'
33import { JWT } from 'google-auth-library' ;
4+ import { Exporter } from './exporter' ;
5+ import { StackdriveOptions } from './options' ;
46//import { auth } from 'google-auth-library'
57//import { request } from 'http';
68const cloudTrace = google . cloudtrace ( 'v1' )
79var uuidv4 = require ( 'uuid/v4' ) ;
810
9- export class Stackdriver {
11+ export class Stackdriver implements Exporter {
1012 projectId : string ;
1113
1214 // TODO: Pass a stackdriver options objetc instead
13- constructor ( projectId : string ) {
14- this . projectId = projectId ;
15+ constructor ( options : StackdriveOptions ) {
16+ this . projectId = options . projectId ;
1517 }
1618
1719 emit ( ) {
You can’t perform that action at this time.
0 commit comments