Skip to content
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

Add basic wildcard support for listening to legacy activities. #2444

Merged
merged 8 commits into from
Oct 4, 2021

Conversation

BlakeWills
Copy link
Contributor

Fixes #2183.

Changes

Add support for wildcards for legacy (DiagnosticSource) events.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Design discussion issue #
  • Changes in public API reviewed

@BlakeWills BlakeWills requested a review from a team October 2, 2021 18:57
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 2, 2021

CLA Signed

The committers are authorized under a signed CLA.

Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I put some perf suggestions.

@reyang
Copy link
Member

reyang commented Oct 2, 2021

@BlakeWills thanks for the contribution! Would you clear the EasyCLA so we can run the CI?

@BlakeWills BlakeWills requested a review from reyang October 3, 2021 20:19
I've followed what was already done for wildcard mode in activity sources, but there are a few questions:
1. Why do we call "Contains" instead of "EndsWith" for activity source wildcard checking? The regex only supports then end mode.
2. This doesn't support a mix, such as wanting to listen to an entire namespace of activities and then only listening to specific activities from another namespace. Again, this is consistent with current behaviour.
@BlakeWills BlakeWills force-pushed the addLegacyWildcardSupport branch from 77dcc98 to 8d4c639 Compare October 3, 2021 21:32
Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@codecov
Copy link

codecov bot commented Oct 4, 2021

Codecov Report

Merging #2444 (9aad6c3) into main (bd189aa) will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2444      +/-   ##
==========================================
+ Coverage   78.31%   78.40%   +0.09%     
==========================================
  Files         246      246              
  Lines        8083     8118      +35     
==========================================
+ Hits         6330     6365      +35     
  Misses       1753     1753              
Impacted Files Coverage Δ
src/OpenTelemetry/Trace/TracerProviderSdk.cs 96.09% <100.00%> (+0.61%) ⬆️
...Zipkin/Implementation/ZipkinExporterEventSource.cs 63.63% <0.00%> (-9.10%) ⬇️
...ZPages/Implementation/ZPagesExporterEventSource.cs 56.25% <0.00%> (-6.25%) ⬇️
...nTelemetry/Internal/OpenTelemetrySdkEventSource.cs 71.56% <0.00%> (+0.98%) ⬆️
src/OpenTelemetry/Trace/SamplingParameters.cs 84.61% <0.00%> (+7.69%) ⬆️

@cijothomas cijothomas merged commit 9591cb9 into open-telemetry:main Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add wildcard support to AddLegacySource
3 participants