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 support for regex #1023

Closed
wants to merge 4 commits into from
Closed

Add support for regex #1023

wants to merge 4 commits into from

Conversation

reyang
Copy link
Member

@reyang reyang commented Aug 7, 2020

This allows folks to use (and later will be available in builder pattern AddActivitySource("MyCompany.MyProduct.*")):

using var tracerProvider = Sdk.CreateTracerProvider(
    new string[]
    {
        "MyCompany.MyProduct.*",
    });

I didn't add test cases/examples/tutorial, will add it after the API got cleaned up (otherwise we'll waste energy changing them back and force).

@reyang reyang requested a review from a team August 7, 2020 17:13
@codecov
Copy link

codecov bot commented Aug 7, 2020

Codecov Report

Merging #1023 into master will decrease coverage by 0.13%.
The diff coverage is 9.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1023      +/-   ##
==========================================
- Coverage   75.52%   75.38%   -0.14%     
==========================================
  Files         222      221       -1     
  Lines        6210     6221      +11     
==========================================
  Hits         4690     4690              
- Misses       1520     1531      +11     
Impacted Files Coverage Δ
...penTelemetry.Api/Metrics/NoopBoundCounterMetric.cs 0.00% <0.00%> (ø)
...penTelemetry.Api/Metrics/NoopBoundMeasureMetric.cs 0.00% <0.00%> (ø)
...nTelemetry.Api/Metrics/NoopDoubleObserverMetric.cs 0.00% <0.00%> (ø)
...etry.Api/Metrics/NoopDoubleObserverMetricHandle.cs 0.00% <0.00%> (ø)
...enTelemetry.Api/Metrics/NoopInt64ObserverMetric.cs 0.00% <0.00%> (ø)
...metry.Api/Metrics/NoopInt64ObserverMetricHandle.cs 0.00% <0.00%> (ø)
src/OpenTelemetry.Api/Metrics/NoopMeasureMetric.cs 0.00% <0.00%> (ø)
...OpenTelemetry/Metrics/Export/NoopMetricExporter.cs 0.00% <ø> (ø)
...penTelemetry/Metrics/Export/NoopMetricProcessor.cs 0.00% <ø> (ø)
src/OpenTelemetry/Sdk.cs 57.85% <8.69%> (-5.93%) ⬇️
... and 2 more


foreach (var name in sources)
{
activitySources[name] = true;
if (string.IsNullOrWhiteSpace(name))
Copy link
Member

Choose a reason for hiding this comment

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

@cijothomas Do we still need to listen to the blank source for the legacy Activity objects? Or did the ActivitySourceAdapter take care of that?

Copy link
Member

@CodeBlanch CodeBlanch left a comment

Choose a reason for hiding this comment

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

LGTM

@reyang reyang mentioned this pull request Aug 10, 2020
2 tasks
@reyang
Copy link
Member Author

reyang commented Aug 10, 2020

Superseded by #1032.

@reyang reyang closed this Aug 10, 2020
@reyang reyang deleted the reyang/regex branch August 10, 2020 19:56
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.

3 participants