-
Notifications
You must be signed in to change notification settings - Fork 33
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
O11Y-1679: Move Tracer.trace out of Tracer class/interface #44
O11Y-1679: Move Tracer.trace out of Tracer class/interface #44
Conversation
Merge Requirements Met ✅Request Rosie to automerge this pull request by including @Workiva/release-management-p in a comment. General InformationTicket(s): Code Review(s): #44 Reviewers: michaelyeager-wf, blakeroberts-wk Additional InformationWatchlist Notifications: None
Note: This is a shortened report. Click here to view Rosie's full evaluation. |
Confirmed passing unit tests and that QA +1 |
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on Slack: #support-infosec. |
Public API ChangesRecommendation: @@ line 7: package:opentelemetry/src/sdk/trace/tracer.dart @@
class Tracer implements Tracer
- FutureOr<R> trace<R>(String name, FutureOr<R> Function() fn, {Context context})
// Removing a method is a major change.
@@ line 9: package:opentelemetry/src/api/trace/tracer.dart @@
abstract class Tracer
- FutureOr<R> trace<R>(String name, FutureOr<R> Function() fn, {Context context})
// Removing a method is a major change.
@@ line 36: package:opentelemetry/src/sdk/open_telemetry.dart @@
+ FutureOr<R> trace<R>(String name, FutureOr<R> Function() fn, {Context context, Tracer tracer})
// Adding a top-level function is a minor change. Showing results for 266971b
Last edited UTC Apr 08 at 21:19:44 |
- Moving tracer to an optional parameter.
FutureOr<R> trace<R>(String name, FutureOr<R> Function() fn, | ||
{api.Context context, api.Tracer tracer}) async { | ||
context ??= api.Context.current; | ||
tracer ??= _tracerProvider.getTracer('opentelemetry-dart'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: take a tracer provider optionally and:
tracer ??= _tracerProvider.getTracer('opentelemetry-dart'); | |
tracerProvider ??= _tracerProvider; | |
tracer ??= tracerProvider.getTracer('opentelemetry-dart'); |
@Workiva/release-management-p |
@michaelyeager-wf I will not merge this because:
|
We should be extra carful merging otel dart stuff right now. We need to avoid releasing 1.0 and ensure we bump minor version on breaking changes. i.e. this PR needs to be included in release 0.3. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 from RM
Could not merge pull request. For assistance, reach out to a member of Release Management in the '#support-release' Slack channel Error: Required status check 'Aviary' is pending. |
Notes
This PR "globalizes" the
trace
utility method and removes it from theTracer
SDK class.Reviewers
@Workiva/product-new-relic