-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Yeager
committed
Apr 15, 2022
1 parent
a3b0085
commit e1839fa
Showing
13 changed files
with
39 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
...dk/trace/samplers/always_off_sampler.dart → ...dk/trace/sampling/always_off_sampler.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import '../../../../api.dart' as api; | ||
import '../../../../sdk.dart' as sdk; | ||
|
||
class AlwaysOffSampler implements api.Sampler { | ||
class AlwaysOffSampler implements sdk.Sampler { | ||
@override | ||
String get description => 'AlwaysOffSampler'; | ||
|
||
@override | ||
api.SamplingResult shouldSample( | ||
sdk.SamplingResult shouldSample( | ||
api.Context context, | ||
api.TraceId traceId, | ||
String spanName, | ||
api.SpanKind spanKind, | ||
bool spanIsRemote, | ||
List<api.Attribute> spanAttributes, | ||
List<api.SpanLink> links) { | ||
return sdk.SamplingResult(api.Decision.drop, spanAttributes, | ||
return sdk.SamplingResult(sdk.Decision.drop, spanAttributes, | ||
context.spanContext?.traceState ?? sdk.TraceState.empty()); | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...sdk/trace/samplers/always_on_sampler.dart → ...sdk/trace/sampling/always_on_sampler.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
import '../../../../api.dart' as api; | ||
import '../../../../sdk.dart' as sdk; | ||
|
||
class AlwaysOnSampler implements api.Sampler { | ||
class AlwaysOnSampler implements sdk.Sampler { | ||
@override | ||
String get description => 'AlwaysOnSampler'; | ||
|
||
@override | ||
api.SamplingResult shouldSample( | ||
sdk.SamplingResult shouldSample( | ||
api.Context context, | ||
api.TraceId traceId, | ||
String spanName, | ||
api.SpanKind spanKind, | ||
bool spanIsRemote, | ||
List<api.Attribute> spanAttributes, | ||
List<api.SpanLink> spanLinks) { | ||
return sdk.SamplingResult(api.Decision.recordAndSample, spanAttributes, | ||
return sdk.SamplingResult(sdk.Decision.recordAndSample, spanAttributes, | ||
context.spanContext?.traceState ?? sdk.TraceState.empty()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
lib/src/api/trace/sampler.dart → lib/src/sdk/trace/sampling/sampler.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
lib/src/api/trace/sampling_result.dart → ...c/sdk/trace/sampling/sampling_result.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters