test(pyramid): Add span streaming support to integration tests#6385
Conversation
This integration gets span streaming automatically via the SentryWsgiMiddleware and the branching logic in helper methods like `set_transaction_name`. Added test coverage to confirm span streaming works as expected. Fixes PY-2350 Fixes #6048
Codecov Results 📊✅ 282 passed | Total: 282 | Pass Rate: 100% | Execution Time: 43.55s All tests are passing successfully. ❌ Patch coverage is 60.00%. Project has 14702 uncovered lines. Files with missing lines (1)
Generated by Codecov Action |
There was a problem hiding this comment.
Can't comment on the diff since there is none for the main integration file, so just a separate comment:
_set_transaction_name_and_sourcetechnically works as is, but would be nice to useSegmentSourceinstead ofTransactionSourcein it when span streaming. There's a streamingSOURCE_FOR_STYLEequivalent intraces.py.- The integration defines an
event_processor; is the data that would be set there set on the span elsewhere (e.g. WSGI), or is there anything we're missing?
👍🏻
The event processor adds the parsed request body to the event, so we're technically missing data, but given we had discussed not adding the |
This integration gets span streaming automatically via the SentryWsgiMiddleware and the branching logic in helper methods like
set_transaction_name.Added test coverage to confirm span streaming works as expected.
Fixes PY-2350
Fixes #6048