-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Description
Problem Statement
It would be cool for any unsupported frameworks and even for the SDK internally in higher order SDKs to have a function that continues a trace from a sentry-trace and baggage value and starts a new transaction.
Solution Brainstorm
Function signature:
interface continueTrace<V> {
(traceInformation: { sentryTrace: string, baggage: string }, (tracedTransaction: Transaction) => V): V
}Example:
export function handler(req, res, next) {
return continueTrace({
sentryTrace: req.headers["sentry-trace"],
baggage: req.headers["baggage"]
}, (transaction) => {
transaction.seTag('foo', 'bar');
return next()
});
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Fields
Give feedbackNo fields configured for issues without a type.