Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions tests/integrations/arq/test_arq.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def inner(
sentry_init_kwargs = {
"integrations": [ArqIntegration()],
"traces_sample_rate": 1.0,
"data_collection": {},
}
sentry_init_kwargs.update(init_kwargs or {})
sentry_init(**sentry_init_kwargs)
Expand Down Expand Up @@ -111,7 +110,6 @@ def inner(
sentry_init_kwargs = {
"integrations": [ArqIntegration()],
"traces_sample_rate": 1.0,
"data_collection": {},
}
sentry_init_kwargs.update(init_kwargs or {})
sentry_init(**sentry_init_kwargs)
Expand Down Expand Up @@ -162,7 +160,6 @@ def inner(
sentry_init_kwargs = {
"integrations": [ArqIntegration()],
"traces_sample_rate": 1.0,
"data_collection": {},
}
sentry_init_kwargs.update(init_kwargs or {})
sentry_init(**sentry_init_kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def test_monitor_beat_tasks_with_headers(monitor_beat_tasks):


def test_span_with_segment(sentry_init):
sentry_init(traces_sample_rate=1.0, data_collection={})
sentry_init(traces_sample_rate=1.0)
headers = {}
monitor_beat_tasks = False

Expand All @@ -90,7 +90,7 @@ def test_span_with_segment(sentry_init):


def test_span_with_segment_custom_headers(sentry_init):
sentry_init(traces_sample_rate=1.0, data_collection={})
sentry_init(traces_sample_rate=1.0)
headers = {
"baggage": BAGGAGE_VALUE,
"sentry-trace": SENTRY_TRACE_VALUE,
Expand Down Expand Up @@ -133,7 +133,7 @@ def test_celery_trace_propagation_default(sentry_init, monitor_beat_tasks):
The Celery integration has its own mechanism to propagate traces:
https://docs.sentry.io/platforms/python/integrations/celery/#distributed-traces
"""
sentry_init(data_collection={})
sentry_init()

headers = {}
span = None
Expand Down Expand Up @@ -169,7 +169,7 @@ def test_celery_trace_propagation_traces_sample_rate(
The Celery integration has its own mechanism to propagate traces:
https://docs.sentry.io/platforms/python/integrations/celery/#distributed-traces
"""
sentry_init(traces_sample_rate=traces_sample_rate, data_collection={})
sentry_init(traces_sample_rate=traces_sample_rate)

headers = {}
span = None
Expand Down
2 changes: 1 addition & 1 deletion tests/integrations/gcp/test_gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def cloud_function(functionhandler, event):
+ FUNCTIONS_PRELUDE
+ dedent(
"""
init_sdk(traces_sample_rate=1.0, data_collection={})
init_sdk(traces_sample_rate=1.0)
gcp_functions.worker_v1.FunctionHandler.invoke_user_function(functionhandler, event)
"""
)
Expand Down
1 change: 0 additions & 1 deletion tests/integrations/langgraph/test_langgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,6 @@ def __init__(self, content, message_type="human"):
def test_graph_bubble_up_ignored(sentry_init, capture_items):
sentry_init(
integrations=[LanggraphIntegration()],
data_collection={},
)

events = capture_items("event")
Expand Down
13 changes: 0 additions & 13 deletions tests/integrations/litellm/test_litellm.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ def test_streaming_chat_completion(
integrations=[LiteLLMIntegration()],
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [
Expand Down Expand Up @@ -558,7 +557,6 @@ async def test_async_streaming_chat_completion(
integrations=[LiteLLMIntegration()],
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [
Expand Down Expand Up @@ -1033,7 +1031,6 @@ def test_exception_handling(
integrations=[LiteLLMIntegration()],
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [{"role": "user", "content": "Hello!"}]
Expand Down Expand Up @@ -1069,7 +1066,6 @@ async def test_async_exception_handling(
integrations=[LiteLLMIntegration()],
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [{"role": "user", "content": "Hello!"}]
Expand Down Expand Up @@ -1106,7 +1102,6 @@ def test_span_origin(
integrations=[LiteLLMIntegration()],
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [{"role": "user", "content": "Hello!"}]
Expand Down Expand Up @@ -1162,7 +1157,6 @@ def test_multiple_providers(
integrations=[LiteLLMIntegration()],
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [{"role": "user", "content": "Hello!"}]
Expand Down Expand Up @@ -1264,7 +1258,6 @@ async def test_async_multiple_providers(
integrations=[LiteLLMIntegration()],
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [{"role": "user", "content": "Hello!"}]
Expand Down Expand Up @@ -1367,7 +1360,6 @@ def test_additional_parameters(
integrations=[LiteLLMIntegration()],
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [{"role": "user", "content": "Hello!"}]
Expand Down Expand Up @@ -1438,7 +1430,6 @@ async def test_async_additional_parameters(
integrations=[LiteLLMIntegration()],
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [{"role": "user", "content": "Hello!"}]
Expand Down Expand Up @@ -1509,7 +1500,6 @@ def test_no_integration(
sentry_init(
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [{"role": "user", "content": "Hello!"}]
Expand Down Expand Up @@ -1567,7 +1557,6 @@ async def test_async_no_integration(
sentry_init(
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [{"role": "user", "content": "Hello!"}]
Expand Down Expand Up @@ -1624,7 +1613,6 @@ def test_response_without_usage(
integrations=[LiteLLMIntegration()],
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

messages = [{"role": "user", "content": "Hello!"}]
Expand Down Expand Up @@ -1667,7 +1655,6 @@ def test_integration_setup(sentry_init):
integrations=[LiteLLMIntegration()],
disabled_integrations=[StdlibIntegration],
traces_sample_rate=1.0,
data_collection={},
)

# Check that callbacks are registered
Expand Down
10 changes: 0 additions & 10 deletions tests/integrations/litestar/test_litestar.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def test_catch_exceptions(
):
sentry_init(
integrations=[LitestarIntegration()],
data_collection={},
)
litestar_app = litestar_app_factory()
client = TestClient(litestar_app)
Expand Down Expand Up @@ -155,7 +154,6 @@ def test_segment_name_and_source(
sentry_init(
traces_sample_rate=1.0,
integrations=[LitestarIntegration()],
data_collection={},
)
litestar_app = litestar_app_factory()
client = TestClient(litestar_app)
Expand All @@ -181,7 +179,6 @@ def test_middleware_spans(
sentry_init(
traces_sample_rate=1.0,
integrations=[LitestarIntegration()],
data_collection={},
)

logging_config = LoggingMiddlewareConfig()
Expand Down Expand Up @@ -238,7 +235,6 @@ async def do_stuff(message):
sentry_init(
traces_sample_rate=1.0,
integrations=[LitestarIntegration()],
data_collection={},
)

litestar_app = litestar_app_factory(middleware=[SampleMiddleware])
Expand Down Expand Up @@ -319,7 +315,6 @@ async def __call__(self, scope, receive, send):
sentry_init(
traces_sample_rate=1.0,
integrations=[LitestarIntegration()],
data_collection={},
)
litestar_app = litestar_app_factory(middleware=[SampleReceiveSendMiddleware])

Expand Down Expand Up @@ -355,7 +350,6 @@ async def my_send(*args, **kwargs):
sentry_init(
traces_sample_rate=1.0,
integrations=[LitestarIntegration()],
data_collection={},
)

litestar_app = litestar_app_factory(middleware=[SamplePartialReceiveSendMiddleware])
Expand Down Expand Up @@ -425,7 +419,6 @@ def test_span_origin(
sentry_init(
integrations=[LitestarIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

logging_config = LoggingMiddlewareConfig()
Expand Down Expand Up @@ -644,7 +637,6 @@ def test_configurable_status_codes_handler(
)
sentry_init(
integrations=[LitestarIntegration(**integration_kwargs)],
data_collection={},
)

@get("/error")
Expand Down Expand Up @@ -678,7 +670,6 @@ def test_configurable_status_codes_middleware(

sentry_init(
integrations=[LitestarIntegration(**integration_kwargs)],
data_collection={},
)

def create_raising_middleware(app):
Expand Down Expand Up @@ -707,7 +698,6 @@ def test_catch_non_http_exceptions_in_middleware(
):
sentry_init(
integrations=[LitestarIntegration()],
data_collection={},
)

def create_raising_middleware(app):
Expand Down
12 changes: 0 additions & 12 deletions tests/integrations/mcp/test_mcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ async def test_tool_handler_constructor_registration(sentry_init, capture_items,
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

async def test_tool(ctx, params):
Expand Down Expand Up @@ -185,7 +184,6 @@ async def test_mcpserver_high_level_tool_instrumented(
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

mcp_server = MCPServer("test-server")
Expand Down Expand Up @@ -217,7 +215,6 @@ async def test_wrapping_handler_is_idempotent(sentry_init, capture_items, stdio)
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

async def test_tool(ctx, params):
Expand Down Expand Up @@ -554,7 +551,6 @@ async def test_tool_handler_stateless_streamable_http(
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

server = Server("test-server")
Expand Down Expand Up @@ -602,7 +598,6 @@ async def test_tool_handler_with_error(sentry_init, capture_items, stdio):
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

server = Server("test-server")
Expand Down Expand Up @@ -936,7 +931,6 @@ async def test_prompt_handler_with_error(sentry_init, capture_items, stdio):
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

server = Server("test-server")
Expand Down Expand Up @@ -977,7 +971,6 @@ async def test_resource_handler_stdio(sentry_init, capture_items, stdio):
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

server = Server("test-server")
Expand Down Expand Up @@ -1034,7 +1027,6 @@ async def test_resource_handler_streamable_http(sentry_init, capture_items, json
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

server = Server("test-server")
Expand Down Expand Up @@ -1097,7 +1089,6 @@ async def test_resource_handler_with_error(sentry_init, capture_items, stdio):
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

server = Server("test-server")
Expand Down Expand Up @@ -1338,7 +1329,6 @@ async def test_multiple_handlers(sentry_init, capture_items, stdio):
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

server = Server("test-server")
Expand Down Expand Up @@ -1590,7 +1580,6 @@ async def test_sse_transport_detection_v2(sentry_init, capture_items, json_rpc_s
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

server = Server("test-server")
Expand Down Expand Up @@ -1668,7 +1657,6 @@ async def test_streamable_http_scope_propagation(sentry_init, capture_items, jso
sentry_init(
integrations=[MCPIntegration()],
traces_sample_rate=1.0,
data_collection={},
)

server = Server("test-server")
Expand Down
Loading
Loading