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 end_with_timestamp method for trace span. #199

Merged
merged 7 commits into from
Aug 28, 2020

Conversation

TommyCpp
Copy link
Contributor

@TommyCpp TommyCpp commented Aug 27, 2020

closes #14

On a side note, maybe we could create a mod for test utils. We have TestSpan in four different files, which could be put into one place.

@TommyCpp TommyCpp requested a review from a team August 27, 2020 01:28
Copy link
Member

@jtescher jtescher left a comment

Choose a reason for hiding this comment

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

Looks great, thanks @TommyCpp just one ergonomics request

@@ -152,8 +152,15 @@ pub trait Span: fmt::Debug + 'static + Send + Sync {
/// Calls to `end` a Span MUST not have any effects on child `Span`s as they may
/// still be running and can be ended later.
///
///This API MUST be non-blocking.
/// This API MUST be non-blocking.
fn end(&self);
Copy link
Member

Choose a reason for hiding this comment

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

It may be useful to implement this method by default in terms of end_with_timestamp now to avoid requiring redundant impls for both methods.

@jtescher
Copy link
Member

@TommyCpp looks like the clippy rules got updated today so this is no longer passing 😐

@TommyCpp
Copy link
Contributor Author

@TommyCpp looks like the clippy rules got updated today so this is no longer passing

That's interesting. I will update it later today.

Copy link
Member

@jtescher jtescher left a comment

Choose a reason for hiding this comment

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

Looks great 👍

@jtescher jtescher merged commit 11bbd60 into open-telemetry:master Aug 28, 2020
@TommyCpp TommyCpp deleted the end-with-timestamp branch September 23, 2020 02:19
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.

End time should be configurable
2 participants