-
Notifications
You must be signed in to change notification settings - Fork 171
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
Update framework integration docs #689
Update framework integration docs #689
Conversation
Codecov Report
@@ Coverage Diff @@
## main #689 +/- ##
=========================================
Coverage 85.00% 85.00%
Complexity 1233 1233
=========================================
Files 137 137
Lines 2980 2980
=========================================
Hits 2533 2533
Misses 447 447
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
- Avoid multiple constructor calls. - Grammar regression. - Fix type `s/jaegar/jaeger`.
@bobstrecansky should be okay to merge? |
bbec4c9
to
ff384bb
Compare
docs/laravel-integration.md
Outdated
try { | ||
throw new \Exception('Exception Example'); | ||
} catch (\Exception $exception) { | ||
$span->setSpanStatus($exception->getCode(), $exception->getMessage()); | ||
$childSpan->setSpanStatus($exception->getCode(), $exception->getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Span::setStatus() accepts StatusCode::STATUS_* now, and this should now use Span::recordException. See SpanInterface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we still set a status or only record the exception without marking the error status?
Perhaps a good naming convention would be:
|
Updates Laravel and Symfony integration docs for consistency with API changes, correctness and completeness. Also fixes some language and fixes the md styling.