Skip to content

Commit 7230250

Browse files
pataarstayallive
andauthored
Add Tracing capabilities to Facade (#504)
Co-authored-by: Alex Bouma <[email protected]>
1 parent 55cc5ca commit 7230250

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Update phpdoc on facade for better IDE autocompletion (#504)
6+
57
## 2.7.0
68

79
- Replace type hint of concrete type (`Sentry\State\Hub`) with interface (`Sentry\State\HubInterface`) in `SentryHandler` constructor (#496)

src/Sentry/Laravel/Facade.php

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,25 @@
55
use Sentry\State\HubInterface;
66

77
/**
8-
* @method static bool addBreadcrumb(\Sentry\Breadcrumb $breadcrumb)
9-
* @method static string|null captureMessage(string $message, \Sentry\Severity $level = null, \Sentry\State\Scope $scope = null)
10-
* @method static string|null captureException(\Throwable $exception)
11-
* @method static string|null captureEvent(\Throwable $exception)
12-
* @method static string|null captureLastError()
8+
* @see \Sentry\State\HubInterface
9+
*
10+
* @method static \Sentry\ClientInterface|null getClient()
11+
* @method static \Sentry\EventId|null getLastEventId()
1312
* @method static \Sentry\State\Scope pushScope()
1413
* @method static bool popScope()
15-
* @method static void configureScope(callable $callback)
1614
* @method static void withScope(callable $callback)
17-
* @method static \Sentry\Integration\IntegrationInterface|null getIntegration(string $className)
18-
* @method static \Sentry\ClientInterface|null getClient()
15+
* @method static void configureScope(callable $callback)
1916
* @method static void bindClient(\Sentry\ClientInterface $client)
20-
* @method static string|null getLastEventId()
17+
* @method static \Sentry\EventId|null captureMessage(string $message, \Sentry\Severity|null $level = null, \Sentry\EventHint|null $hint = null)
18+
* @method static \Sentry\EventId|null captureException(\Throwable $exception, \Sentry\EventHint|null $hint = null)
19+
* @method static \Sentry\EventId|null captureEvent(\Throwable $exception, \Sentry\EventHint|null $hint = null)
20+
* @method static \Sentry\EventId|null captureLastError(\Sentry\EventHint|null $hint = null)
21+
* @method static bool addBreadcrumb(\Sentry\Breadcrumb $breadcrumb)
22+
* @method static \Sentry\Integration\IntegrationInterface|null getIntegration(string $className)
23+
* @method static \Sentry\Tracing\Transaction startTransaction(\Sentry\Tracing\TransactionContext $context, array $customSamplingContext = [])
24+
* @method static \Sentry\Tracing\Transaction|null getTransaction()
25+
* @method static \Sentry\Tracing\Span|null getSpan()
26+
* @method static \Sentry\State\HubInterface setSpan(\Sentry\Tracing\Span|null $span)
2127
*/
2228
class Facade extends \Illuminate\Support\Facades\Facade
2329
{

0 commit comments

Comments
 (0)