Skip to content

test: Access the 'type' in an event using .get - #7239

Merged
ericapisani merged 1 commit into
masterfrom
ep/update-test-fixture
Aug 24, 2026
Merged

test: Access the 'type' in an event using .get#7239
ericapisani merged 1 commit into
masterfrom
ep/update-test-fixture

Conversation

@ericapisani

Copy link
Copy Markdown
Member

select_transactions_with_mcp_spans assumes that all events provided to the helper are transactions and contain a type key.

However, not all events contain 'type's and so passing events that may contain a log would raise a KeyError.

Relates to #7224

`select_transactions_with_mcp_spans` assumes that all events
provided to the helper are transactions and contain a `type` key.

However, not all events contain 'type's and so passing events that
may contain a log would raise a KeyError.
@ericapisani
ericapisani requested a review from a team as a code owner August 24, 2026 12:43
@ericapisani
ericapisani enabled auto-merge (squash) August 24, 2026 12:47
@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

113725 passed | ⏭️ 6732 skipped | Total: 120457 | Pass Rate: 94.41% | Execution Time: 404m 54s

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2488 uncovered lines.
✅ Project coverage is 90.22%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.22%    90.22%        —%
==========================================
  Files          193       193         —
  Lines        25433     25433         —
  Branches      9346      9346         —
==========================================
+ Hits         22945     22945         —
- Misses        2488      2488         —
- Partials      1437      1437         —

Generated by Codecov Action

@ericapisani
ericapisani merged commit fd74bdc into master Aug 24, 2026
144 checks passed
@ericapisani
ericapisani deleted the ep/update-test-fixture branch August 24, 2026 12:55
sentrivana pushed a commit that referenced this pull request Aug 25, 2026
`select_transactions_with_mcp_spans` assumes that all events provided to
the helper are transactions and contain a `type` key.

However, not all events contain 'type's and so passing events that may
contain a log would raise a KeyError.

Relates to #7224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants