Skip to content

Commit

Permalink
Remove code not meant to be in here
Browse files Browse the repository at this point in the history
  • Loading branch information
stayallive committed Oct 14, 2022
1 parent 3a0294c commit e2d3819
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions src/Sentry/Laravel/Tracing/Middleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class Middleware
*/
protected $appSpan;

/**
* The span for the `route` part of the application.
*
* @var \Sentry\Tracing\Span|null
*/
protected $routeSpan;

/**
* The timestamp of application bootstrap completion.
*
Expand All @@ -56,16 +49,7 @@ public function handle(Request $request, Closure $next)
$this->startTransaction($request, app(HubInterface::class));
}

$response = $next($request);

if ($this->routeSpan) {
$this->routeSpan->finish();
$this->routeSpan = null;

SentrySdk::getCurrentHub()->setSpan($this->appSpan);
}

return $response;
return $next($request);
}

/**
Expand Down Expand Up @@ -114,11 +98,6 @@ public function setBootedTimestamp(?float $timestamp = null): void
$this->bootedTimestamp = $timestamp ?? microtime(true);
}

public function setRouteSpan(Span $span): void
{
$this->routeSpan = $span;
}

private function startTransaction(Request $request, HubInterface $sentry): void
{
$requestStartTime = $request->server('REQUEST_TIME_FLOAT', microtime(true));
Expand Down

0 comments on commit e2d3819

Please sign in to comment.