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

Commit cbce142

Browse files
fabiogomessilvakjin
authored andcommitted
refactor: fix some dependencies, file copyright and typos (#5)
PR-URL: #5
1 parent 29c9f04 commit cbce142

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

packages/opencensus-core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"nyc": "11.6.0"
5555
},
5656
"dependencies": {
57-
"async_hooks": "^1.0.0",
5857
"continuation-local-storage": "^3.2.1",
5958
"debug": "^3.1.0",
6059
"intercept-stdout": "^0.1.2",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ export class Tracer implements types.Tracer {
116116
}
117117
}
118118
const aRoot = new RootSpan(this, options);
119-
const sampleDecisition: boolean = propagatedSample ?
119+
const sampleDecision: boolean = propagatedSample ?
120120
propagatedSample :
121121
this.sampler.shouldSample(aRoot.traceId);
122122

123-
if (sampleDecisition) {
123+
if (sampleDecision) {
124124
aRoot.start();
125125
this.currentRootSpan = aRoot;
126126
newRoot = aRoot;

packages/opencensus-core/test/test-console-exporter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2018 Google LLC. All Rights Reserved.
2+
* Copyright 2018, OpenCensus Authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the 'License');
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)