Skip to content

Commit 0586e36

Browse files
authored
feat: Use fromSentryTrace & Bump SDK (#420)
* feat: Use fromSentryTrace * ref: Bump SDK * fix: Composer version lock
1 parent b5c4d13 commit 0586e36

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
## 2.3.0
6+
7+
- Bump Sentry SDK to `3.1.*` (#420)
8+
59
## 2.2.0
610

711
- Fix incorrectly stripped base controller action from transaction name (#406)

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"require": {
2424
"php": "^7.2",
2525
"illuminate/support": "5.0 - 5.8 | ^6.0 | ^7.0 | ^8.0",
26-
"sentry/sdk": "^3.0"
26+
"sentry/sentry": "3.1.*",
27+
"sentry/sdk": "^3.1"
2728
},
2829
"require-dev": {
2930
"phpunit/phpunit": "^8.0",

src/Sentry/Laravel/Tracing/Middleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private function startTransaction(Request $request, HubInterface $sentry): void
8383
$sentryTraceHeader = $request->header('sentry-trace');
8484

8585
$context = $sentryTraceHeader
86-
? TransactionContext::fromTraceparent($sentryTraceHeader)
86+
? TransactionContext::fromSentryTrace($sentryTraceHeader)
8787
: new TransactionContext;
8888

8989
$context->setOp('http.server');

0 commit comments

Comments
 (0)