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

Move AddLegacySource to API #2019

Merged
merged 19 commits into from
May 3, 2021

Conversation

Austin-Tan
Copy link
Member

Fixes #1983.

Changes

AddLegacySource(string operationname), used for legacy activities without the use of ActivitySource, should be in our public API.
No changes to the functionality of these methods.

  • CHANGELOG.md updated for non-trivial changes

@Austin-Tan Austin-Tan requested a review from a team April 28, 2021 20:03
@@ -14,6 +14,7 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
Copy link
Member Author

Choose a reason for hiding this comment

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

Without this, the project fails to build due to the XML comment below on AddLegacySource. Wondering if this is enough of a drain to prefer instead rewriting the below comment?

Copy link
Contributor

Choose a reason for hiding this comment

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

if you want, you could move this to the comment. So, System.Diagnostics.Activity

Copy link
Contributor

Choose a reason for hiding this comment

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

This shouldn't affect the runtime performance of the application, right? We should add that using directive so that the method documentation is written with brevity.

Copy link
Member

Choose a reason for hiding this comment

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

Dont think there is any issue here. My personal preference is to not add the using Sys.Diag, and instead use the full name in the doc comment. It'll make using look cleaner.

Copy link
Member

Choose a reason for hiding this comment

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

Merging without this - you can address this in a separate PR.

@codecov
Copy link

codecov bot commented Apr 29, 2021

Codecov Report

Merging #2019 (1a01a15) into main (d07ec26) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2019   +/-   ##
=======================================
  Coverage   83.87%   83.88%           
=======================================
  Files         192      192           
  Lines        6184     6181    -3     
=======================================
- Hits         5187     5185    -2     
+ Misses        997      996    -1     
Impacted Files Coverage Δ
...c/OpenTelemetry.Api/Trace/TracerProviderBuilder.cs 100.00% <ø> (ø)
...Telemetry/Trace/TracerProviderBuilderExtensions.cs 88.23% <ø> (-6.77%) ⬇️
...c/OpenTelemetry/Trace/TracerProviderBuilderBase.cs 85.48% <100.00%> (ø)
...ter.ZPages/Implementation/ZPagesActivityTracker.cs 100.00% <0.00%> (+2.85%) ⬆️
...ZPages/Implementation/ZPagesExporterEventSource.cs 62.50% <0.00%> (+6.25%) ⬆️

@@ -9,6 +9,10 @@ please check the latest changes

## Unreleased

* `AddLegacySource()` moved out of `TracerProviderBuilderExtensions` and into
public API
Copy link
Member

Choose a reason for hiding this comment

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

it was and still is part of public API. Might be a good idea to reword this.

Copy link
Member

Choose a reason for hiding this comment

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

we can adjust this separate PR.

@cijothomas cijothomas merged commit 073ce6c into open-telemetry:main May 3, 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.

Move AddLegacySource to OpenTelemetry API
4 participants