-
Notifications
You must be signed in to change notification settings - Fork 36
Introduce top level withSpan; reclaim Tracer and Instrument for protocols #113
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
Introduce top level withSpan; reclaim Tracer and Instrument for protocols #113
Conversation
470ab6a
to
d95bf10
Compare
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.
This show be fixed in multiple places(
/// - kind: The ``SpanKind`` of the new ``Span``. | ||
/// - function: The function name in which the span was started | ||
/// - fileID: The `fileID` where the span was started. | ||
/// - line: The file line where the span was started. |
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.
Parameters don't match actual
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.
Thanks will fix
/// - kind: The ``SpanKind`` of the new ``Span``. | ||
/// - function: The function name in which the span was started | ||
/// - fileID: The `fileID` where the span was started. | ||
/// - line: The file line where the span was started. |
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.
Parameters don't match actual
/// - function: The function name in which the span was started | ||
/// - fileID: The `fileID` where the span was started. | ||
/// - line: The file line where the span was started. | ||
/// - operation: The operation that this span should be measuring |
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.
Parameters don't match actual
/// - function: The function name in which the span was started | ||
/// - fileID: The `fileID` where the span was started. | ||
/// - line: The file line where the span was started. | ||
/// - operation: The operation that this span should be measuring |
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.
Parameters don't match actual
**Motivation:** The TracerProtocol naming was annoyingly problematic and turns out we can and should actually move the withSpan APIs as top level functions which is typical Swift practice for such "global functionality". This way we can `withSpan() {}` with less noise, and also gain back the Tracer protocol name.
d859910
to
74b2beb
Compare
74b2beb
to
be47d00
Compare
Motivation:
The TracerProtocol naming was annoyingly problematic and turns out we can and should actually move the withSpan APIs as top level functions which is typical Swift practice for such "global functionality".
This way we can
withSpan() {}
with less noise, and also gain back the Tracer protocol name.resolves #109