Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/opencensus-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"nyc": "11.6.0"
},
"dependencies": {
"async_hooks": "^1.0.0",
"continuation-local-storage": "^3.2.1",
"debug": "^3.1.0",
"intercept-stdout": "^0.1.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/opencensus-core/src/trace/model/tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ export class Tracer implements types.Tracer {
}
}
const aRoot = new RootSpan(this, options);
const sampleDecisition: boolean = propagatedSample ?
const sampleDecision: boolean = propagatedSample ?
propagatedSample :
this.sampler.shouldSample(aRoot.traceId);

if (sampleDecisition) {
if (sampleDecision) {
aRoot.start();
this.currentRootSpan = aRoot;
newRoot = aRoot;
Expand Down
2 changes: 1 addition & 1 deletion packages/opencensus-core/test/test-console-exporter.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2018 Google LLC. All Rights Reserved.
* Copyright 2018, OpenCensus Authors
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
Expand Down