Skip to content

Commit

Permalink
✨ Use the right term for tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanti authored Aug 25, 2023
1 parent 1fb3e7e commit ba245f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Classes/Service/SentryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private function isTraceForced(?ServerRequestInterface $serverRequest): bool
return false;
}

return isset($serverRequest->getCookieParams()['XDEBUG_PROFILE']);
return isset($serverRequest->getCookieParams()['XDEBUG_TRACE']);
}

private function startTransaction(): Transaction
Expand Down
Binary file added Documentation/Tracing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,17 @@ at the moment there is nothing to configure
> if a measurement key has more than 4 entries, they will get combined into one total time with a count.
> And the 3 longest entries will be kept
## Sentry Profiling
## Sentry Tracing

if you have sentry enabled (different Extension eg. `pluswerk/sentry` or `networkteam/sentry-client`) than you can activate the profiling.
if you have sentry enabled (different Extension eg. `pluswerk/sentry` or `networkteam/sentry-client`) than you can activate the tracing.
- `sentry_sample_rate`
- if empty ` ` it will keep the setting that was set from the sentry extension.
- if set to a number like `0.1` it will track 10% of all Requests in sentry.
- `sentry_cli_sample_rate`
- just like `sentry_sample_rate` but this setting is for the cli calls of the `typo3` binary
- `stop_watch_limit` is set for long-running processes, if you get memory problems you can lower this setting. (default: 100_000)
- you can force the profiling of Requests by adding the Cookie `XDEBUG_PROFILE` with any value.
- you can force the Tracing of Requests by adding the Cookie `XDEBUG_TRACE` with any value.
![Tracing](./Documentation/Tracing.png)

## Measure your own timings:

Expand Down

0 comments on commit ba245f7

Please sign in to comment.