diff --git a/packages/aws-serverless/src/requestSpanOptions.ts b/packages/aws-serverless/src/requestSpanOptions.ts index ed41aa2d334b..80faf9d3c1e9 100644 --- a/packages/aws-serverless/src/requestSpanOptions.ts +++ b/packages/aws-serverless/src/requestSpanOptions.ts @@ -46,7 +46,6 @@ export function getRequestSpanOptions(event: unknown, context: Context, requestI // The span is started within the surrounding `continueTrace`, so it continues the incoming trace. return { name: context.functionName, - forceTransaction: true, attributes: { [SENTRY_OP]: FUNCTION_AWS, [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.aws_lambda', diff --git a/packages/browser/src/tracing/browserTracingIntegration.ts b/packages/browser/src/tracing/browserTracingIntegration.ts index 196bbcfb01a5..49e6abf319c5 100644 --- a/packages/browser/src/tracing/browserTracingIntegration.ts +++ b/packages/browser/src/tracing/browserTracingIntegration.ts @@ -521,7 +521,6 @@ export const browserTracingIntegration = ((options: Partial; - forceTransaction: boolean; } { const client = getClient(); const isStreamed = !!client && hasSpanStreamingEnabled(client); @@ -151,7 +150,6 @@ export function getBullMQProcessSpanOptions(queueName: string | undefined): { [MESSAGING_OPERATION_TYPE]: PROCESS_OPERATION, [MESSAGING_DESTINATION_NAME]: queueName, }, - forceTransaction: true, }; } diff --git a/packages/react-router/src/server/createServerInstrumentation.ts b/packages/react-router/src/server/createServerInstrumentation.ts index a0c966216763..4ca18b21d1c8 100644 --- a/packages/react-router/src/server/createServerInstrumentation.ts +++ b/packages/react-router/src/server/createServerInstrumentation.ts @@ -103,7 +103,6 @@ export function createSentryServerInstrumentation( await startSpan( { name: unparameterizedName, - forceTransaction: true, attributes: { [SENTRY_OP]: HTTP_SERVER, [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.http.react_router.instrumentation_api', diff --git a/packages/react-router/test/server/createServerInstrumentation.test.ts b/packages/react-router/test/server/createServerInstrumentation.test.ts index 011e2e79819e..9ac0ad924277 100644 --- a/packages/react-router/test/server/createServerInstrumentation.test.ts +++ b/packages/react-router/test/server/createServerInstrumentation.test.ts @@ -165,11 +165,10 @@ describe('createSentryServerInstrumentation', () => { await hooks.request(mockHandleRequest, { request: mockRequest, context: undefined }); - // Should create a new root span with forceTransaction + // Should create a new root span expect(core.startSpan).toHaveBeenCalledWith( expect.objectContaining({ name: 'GET /api/users', - forceTransaction: true, attributes: expect.objectContaining({ 'sentry.op': 'http.server', 'sentry.origin': 'auto.http.react_router.instrumentation_api',