Skip to content

Commit

Permalink
feat(tideways): mark transaction as web for tideways apm profiler
Browse files Browse the repository at this point in the history
  • Loading branch information
dzoudzou committed Oct 5, 2023
1 parent 0f991ac commit 77ac533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ clover.xml
**/.phpunit.result.cache
.php-cs-fixer.cache
*.tmp
.idea/
1 change: 1 addition & 0 deletions src/Bridge/Tideways/Apm/RequestProfiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ private function start(Request $swooleRequest): void
$referenceId = $this->dataProvider->getReferenceId($request);

Profiler::start(['service' => $this->serviceName, 'developer_session' => $developerSession]);
Profiler::markAsWebTransaction();
Profiler::setCustomVariable('http.host', $request->getHttpHost());
Profiler::setCustomVariable('http.method', $request->getMethod());
Profiler::setCustomVariable('http.url', $request->getPathInfo());
Expand Down

0 comments on commit 77ac533

Please sign in to comment.