Skip to content

Commit

Permalink
Remove unnecessary check for tracing enablement in (#463)
Browse files Browse the repository at this point in the history
TracingRequestListener

Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
huangdijia and huangdijia committed Nov 24, 2023
1 parent 4b68ed5 commit 07d06a6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/sentry/src/Tracing/Listener/TracingRequestListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ public function listen(): array

public function process(object $event): void
{
if (! $this->switcher->isTracingEnable('request')) {
return;
}

match ($event::class) {
RequestReceived::class, RpcRequestReceived::class => $this->startTransaction($event),
RequestHandled::class, RpcRequestHandled::class => $this->setTraceIdAndException($event),
Expand Down

0 comments on commit 07d06a6

Please sign in to comment.