You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
at the very least agreement on what the default behavior should be per platform
or more high level client side vs server side
<?php$sentryTraceHeader = $request->getHeaderLine('sentry-trace');
$baggageHeader = $request->getHeaderLine('baggage');
$transactionContext = \Sentry\Tracing\TransactionContext::continueFromHeaders($sentryTraceHeader, $baggageHeader);
// Start the transaction$transaction = \Sentry\startTransaction($transactionContext);
...$transactionContext = new \Sentry\Tracing\TransactionContext();
// Start a nested transaction// In this case, we would not continue the trace and instead start a new one.$transaction = \Sentry\startTransaction();
https://sentry.io/organizations/sentry-sdks/performance/sentry-php:c81f843eb6474d53aca7902229cbe32a
---
$transactionContext = \Sentry\Tracing\TransactionContext::fromParent($transaction);
// Start a nested transaction$transaction = \Sentry\startTransaction($transactionContext);
publicstaticfunctionfromParent(Transaction$transaction)
{
$context = newself();
$context->traceId = $transaction->getTraceId();
$context->parentSpanId = $transaction->getParentSpanId();
$context->sampled = $transaction->getSampled();
$context->getMetadata()->setBaggage($transaction->getBaggage());
return$context;
}
https://sentry.io/organizations/sentry-sdks/performance/sentry-php:a2e3d29c847e49ebac13ce9448254af6// - How would someone fetch the current transaction? SentrySdk::getCurrentHub()->getTransaction()?// - Should we auto populate this inside TransactionContext::__construct()?
The text was updated successfully, but these errors were encountered:
start_transaction
doesn’t continue baggage by default- Next steps: dev docs spec and try to move forward,
proposed solution:
start_transaction(create_new_trace=True)
Places to document:
Open points:
The text was updated successfully, but these errors were encountered: