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

feat: allow timestamps to be passed to endSpan #747

Merged
merged 3 commits into from
May 14, 2018

Conversation

kjin
Copy link
Contributor

@kjin kjin commented May 14, 2018

Fixes #456

This PR adds an option to specify a time when a given span should be ended.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 14, 2018
const spanData = new CommonSpanData(trace, 'name', '0', 0);
const startTime = new Date(spanData.span.startTime).getTime();
// This input Date is far enough in the future that it's unlikely that the
// timethis function was called could be close to it.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants