Skip to content

Adds support for closeSpanOnFinish.#12

Closed
jcchavezs wants to merge 1 commit into
masterfrom
adds_support_for_close_span_on_finish
Closed

Adds support for closeSpanOnFinish.#12
jcchavezs wants to merge 1 commit into
masterfrom
adds_support_for_close_span_on_finish

Conversation

@jcchavezs
Copy link
Copy Markdown
Contributor

This PR fixes a missing for the in-process context propagation.

Ping @vlad-mh @kevinlebrun @palazzem

Comment thread src/DDTrace/Span.php

$this->duration = ($finishTime ?: Time\now()) - $this->startTime;

if ($this->closeSpanOnFinish && null !== ($scope = $this->scopeManager->getScope($this))) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It looks like this logic is not tested.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right.

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.

2 participants