Skip to content

Use nanotime for additional clock resolution#239

Merged
tylerbenson merged 1 commit into
masterfrom
tyler/nano-resolution
Feb 23, 2018
Merged

Use nanotime for additional clock resolution#239
tylerbenson merged 1 commit into
masterfrom
tyler/nano-resolution

Conversation

@tylerbenson
Copy link
Copy Markdown
Contributor

If a start or stop timestamp on a span is provided, the nanotime is ignored.

@tylerbenson tylerbenson added type: enhancement Enhancements and improvements comp: core Tracer core labels Feb 22, 2018
@tylerbenson tylerbenson added this to the 0.4.0 milestone Feb 22, 2018
@tylerbenson tylerbenson requested a review from realark February 22, 2018 06:38
Copy link
Copy Markdown
Contributor

@realark realark left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I noticed we're not guarded against multiple threads calling finish. I believe that's okay, since we weren't doing it before. Just thought I'd point that out.

@tylerbenson
Copy link
Copy Markdown
Contributor Author

Good point... if that were to happen on the root span, is it possible the trace would be written to the queue twice?

If a start or stop timestamp on a span is provided, the nanotime is ignored.
@tylerbenson tylerbenson force-pushed the tyler/nano-resolution branch from f4fb903 to 4c66bc8 Compare February 23, 2018 03:13
@tylerbenson
Copy link
Copy Markdown
Contributor Author

I think I'll address the threadsafety issue in a separate PR.

@tylerbenson tylerbenson merged commit 92e0ede into master Feb 23, 2018
@tylerbenson tylerbenson deleted the tyler/nano-resolution branch February 23, 2018 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: core Tracer core type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants