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

Commit 5c853bf

Browse files
finished interfaces creation
1 parent 5126f58 commit 5c853bf

3 files changed

Lines changed: 17 additions & 3 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+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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+
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import {debug} from '../internal/util'
22
import {google} from 'googleapis'
33
import { 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';
68
const cloudTrace = google.cloudtrace('v1')
79
var 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() {

0 commit comments

Comments
 (0)