Skip to content

Commit 2456959

Browse files
use OP constant
1 parent f514196 commit 2456959

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/integrations/openai_agents/test_openai_agents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import sentry_sdk
1111
from sentry_sdk import start_span
12-
from sentry_sdk.consts import SPANDATA
12+
from sentry_sdk.consts import SPANDATA, OP
1313
from sentry_sdk.integrations.logging import LoggingIntegration
1414
from sentry_sdk.integrations.openai_agents import OpenAIAgentsIntegration
1515
from sentry_sdk.integrations.openai_agents.utils import _set_input_data, safe_serialize
@@ -1338,7 +1338,7 @@ async def test_hosted_mcp_tool_propagation_header_streamed(
13381338
ai_client_span = next(
13391339
span
13401340
for span in transaction._span_recorder.spans
1341-
if span.op == "gen_ai.chat"
1341+
if span.op == OP.GEN_AI_CHAT
13421342
)
13431343

13441344
args, kwargs = create.call_args

0 commit comments

Comments
 (0)