Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

feat: allow timestamps to be passed to endSpan#747

Merged
kjin merged 3 commits intogoogleapis:masterfrom
kjin:end-span-2
May 14, 2018
Merged

feat: allow timestamps to be passed to endSpan#747
kjin merged 3 commits intogoogleapis:masterfrom
kjin:end-span-2

Conversation

@kjin
Copy link
Copy Markdown
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.

@kjin kjin requested review from DominicKramer, jinwoo and ofrobots May 14, 2018 19:04
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 14, 2018
Comment thread test/test-span-data.ts Outdated
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.

@kjin kjin merged commit 319642a into googleapis:master May 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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