-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
ImprovementMeta: Good First IssuePackage: coreIssues related to the Sentry Core SDKIssues related to the Sentry Core SDK
Description
Problem Statement
Currently, when using the trpc middleware from packages/core/src/trpc.ts
, a span is created using startSpanManual
.
I'd like to force this span creation to create a transaction and this could be done by adding the forceTransaction: true
. However, currently, the only options to pass into the middleware SentryTrpcMiddlewareOptions
is attachRpcInput?: boolean
.
Solution Brainstorm
We could add forceTransaction?: boolean
to SentryTrpcMiddlewareOptions
and then pass it to startSpanManual
as an argument if it is truthy.
Metadata
Metadata
Assignees
Labels
ImprovementMeta: Good First IssuePackage: coreIssues related to the Sentry Core SDKIssues related to the Sentry Core SDK
Projects
Status
No status