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

Fix EventSource for B3Propagator #3336

Merged

Conversation

cijothomas
Copy link
Member

Own eventsource.
Also moved the public api files to unshipped, as the stable has not been released yet

@cijothomas cijothomas requested a review from a team June 3, 2022 17:37
/// This is used for internal logging of this library.
/// </summary>
[EventSource(Name = "OpenTelemetry.Extensions.Propagators")]
internal class OpenTelemetryPropagatorsEventSource : EventSource
Copy link
Member

Choose a reason for hiding this comment

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

nit: internal sealed class

[EventSource(Name = "OpenTelemetry.Extensions.Propagators")]
internal class OpenTelemetryPropagatorsEventSource : EventSource
{
public static OpenTelemetryPropagatorsEventSource Log = new();
Copy link
Member

Choose a reason for hiding this comment

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

nit:

public static readonly OpenTelemetryPropagatorsEventSource Log = new();

or

public static OpenTelemetryPropagatorsEventSource Log { get; } = new();

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

@cijothomas
Copy link
Member Author

Both the nits should be applied across entire set of EventSource classes. Would make it a follow up PR.

@codecov
Copy link

codecov bot commented Jun 3, 2022

Codecov Report

Merging #3336 (3e7f8ef) into main (6493cdd) will increase coverage by 0.00%.
The diff coverage is 33.33%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3336   +/-   ##
=======================================
  Coverage   85.44%   85.44%           
=======================================
  Files         269      270    +1     
  Lines        9552     9560    +8     
=======================================
+ Hits         8162     8169    +7     
- Misses       1390     1391    +1     
Impacted Files Coverage Δ
...enTelemetry.Extensions.Propagators/B3Propagator.cs 85.86% <28.57%> (ø)
...Propagators/OpenTelemetryPropagatorsEventSource.cs 37.50% <37.50%> (ø)
...metryProtocol/Implementation/ActivityExtensions.cs 95.60% <0.00%> (+1.09%) ⬆️
...ter.ZPages/Implementation/ZPagesActivityTracker.cs 100.00% <0.00%> (+2.85%) ⬆️
...ZPages/Implementation/ZPagesExporterEventSource.cs 62.50% <0.00%> (+6.25%) ⬆️

Copy link
Member

@alanwest alanwest left a comment

Choose a reason for hiding this comment

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

Tiny correction needed but 👍

@cijothomas cijothomas merged commit 7d92b87 into open-telemetry:main Jun 3, 2022
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