Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Conversation

@chingor13
Copy link
Member

The first span defaults to false (from an external process).
Subsequent spans default to true (running in the same PHP process).

Fixes #122

The first span defaults to false (from an external process).
Subsequent spans default to true (running in the same PHP process).
@chingor13 chingor13 requested a review from tmatsuo March 29, 2018 22:35
if (method_exists($span, 'sameProcessAsParentSpan')) {
return $span->sameProcessAsParentSpan();
}
return true;
Copy link
Contributor

Choose a reason for hiding this comment

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

When this happens? and is it ok to always return true?

Copy link
Member Author

Choose a reason for hiding this comment

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

This would happen if they have an older version of the extension.

We could try to do a workaround to try and set the first span's value to false, but it's probably not worth it.

@chingor13 chingor13 merged commit eb528d3 into master Apr 2, 2018
@chingor13 chingor13 deleted the same-process branch April 2, 2018 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants