-
Notifications
You must be signed in to change notification settings - Fork 183
baggage delegate to IncludeExcludePredicate and allow wildcards in auto-configuration #2802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 12 commits
2586d25
53610d2
f5fc44c
bd5a559
53862b8
df3d46c
37e73f8
4827fd6
8e14b33
d7946ad
ba60212
9ea208e
a6d16ca
00cb1ea
5abd784
b765107
97844ff
61ef1cb
6048aa0
13e517d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,14 +40,7 @@ private static void addSpanProcessor( | |
| } | ||
|
|
||
| // need to add before the batch span processor | ||
| sdkTracerProviderBuilder.addSpanProcessorFirst(createBaggageSpanProcessor(keys)); | ||
| } | ||
|
|
||
| static BaggageSpanProcessor createBaggageSpanProcessor(List<String> keys) { | ||
| if (keys.size() == 1 && keys.get(0).equals("*")) { | ||
| return BaggageSpanProcessor.allowAllBaggageKeys(); | ||
| } | ||
|
Comment on lines
-47
to
-49
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [for reviewer] this optimization is not really necessary as an equivalent is implemented in |
||
| return new BaggageSpanProcessor(keys::contains); | ||
| sdkTracerProviderBuilder.addSpanProcessorFirst(new BaggageSpanProcessor(keys, null)); | ||
| } | ||
|
|
||
| private static void addLogRecordProcessor( | ||
|
|
@@ -60,13 +53,6 @@ private static void addLogRecordProcessor( | |
| } | ||
|
|
||
| // need to add before the batch log processor | ||
| sdkLoggerProviderBuilder.addLogRecordProcessorFirst(createBaggageLogRecordProcessor(keys)); | ||
| } | ||
|
|
||
| static BaggageLogRecordProcessor createBaggageLogRecordProcessor(List<String> keys) { | ||
| if (keys.size() == 1 && keys.get(0).equals("*")) { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [for reviewer] this optimization is not really necessary as an equivalent is implemented in |
||
| return BaggageLogRecordProcessor.allowAllBaggageKeys(); | ||
| } | ||
| return new BaggageLogRecordProcessor(keys::contains); | ||
| sdkLoggerProviderBuilder.addLogRecordProcessorFirst(new BaggageLogRecordProcessor(keys, null)); | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.