Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/guide/event-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class SentryOptionsContext implements EventListenerInterface

public function setServerContext(Event $event): void
{
/** @var \CakeSentry\Http\SentryClient $subject */
/** @var \Sentry\State\HubInterface $subject */
$subject = $event->getSubject();
$options = $subject->getHub()->getClient()->getOptions();
$options = $subject->getClient()->getOptions();

$options->setEnvironment('test_app');
$options->setRelease('3.0.0@dev');
Expand Down
9 changes: 5 additions & 4 deletions docs/guide/performance-monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
return [
'CakeSentry' => [
'enableQueryLogging' => true,
'enablePerformanceMonitoring' => true
]
'enablePerformanceMonitoring' => true,
],
'Sentry' => [
'dsn' => '<sentry-dsn-url>',
'traces_sample_rate' => 1,
]
],
];
```

Expand All @@ -34,6 +34,7 @@ return [
// ...
],
],
];
```

:::
Expand All @@ -43,4 +44,4 @@ return [
> [!WARNING]
> This is only available if you are on CakePHP 5.3+ and Version 3.5+ of this plugin

[CakePHP 5.3 added events](https://book.cakephp.org/5.x/core-libraries/caching.html#cache-events) for cache operations. If you already had performance monitoring enabled, you can now also see cache operations in Sentry.
[CakePHP 5.3 added events](https://book.cakephp.org/5.x/core-libraries/caching.html#cache-events) for cache operations. If you already had performance monitoring enabled, you can now also see cache operations in Sentry.
Loading