File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -655,8 +655,9 @@ def _enter_sentry_scope(self):
655655 return
656656
657657 warnings .warn (
658- "You are using implicit sentry integration. This feature might be removed in a future major release."
659- "Use explicit `FastApiJsonRPCIntegration` with sentry-sdk 2.* instead." ,
658+ "Implicit Sentry integration is deprecated and may be removed in a future major release. "
659+ "To ensure compatibility, use sentry-sdk 2.* and explicit integration:"
660+ "`from fastapi_jsonrpc.contrib.sentry import FastApiJsonRPCIntegration`. "
660661 )
661662 with sentry_new_scope () as scope :
662663 # Actually we can use set_transaction_name
Original file line number Diff line number Diff line change 1- from .sentry import TransactionNameGenerator , FastApiJsonRPCIntegration , jrpc_transaction_middleware
2-
3- __all__ = [
4- "FastApiJsonRPCIntegration" ,
5- "TransactionNameGenerator" ,
6- "jrpc_transaction_middleware" ,
7- ]
Original file line number Diff line number Diff line change 44from sentry_sdk .envelope import Envelope
55from sentry_sdk .integrations .starlette import StarletteIntegration
66from sentry_sdk .integrations .fastapi import FastApiIntegration
7- from fastapi_jsonrpc .contrib import FastApiJsonRPCIntegration
7+ from fastapi_jsonrpc .contrib . sentry import FastApiJsonRPCIntegration
88
99
1010@pytest .fixture
You can’t perform that action at this time.
0 commit comments