Skip to content

fix(pydantic-ai): Stop truncating in the streaming trace lifecycle#6659

Open
alexander-alderman-webb wants to merge 1 commit into
masterfrom
webb/pydantic-ai/truncate
Open

fix(pydantic-ai): Stop truncating in the streaming trace lifecycle#6659
alexander-alderman-webb wants to merge 1 commit into
masterfrom
webb/pydantic-ai/truncate

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Description

Align with other integrations that use the should_truncate_gen_ai_input helper.

Issues

Reminders

@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

89167 passed | ❌ 6 failed | ⏭️ 6185 skipped | Total: 95358 | Pass Rate: 93.51% | Execution Time: 318m 53s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -719
Passed Tests 📉 -670
Failed Tests 📈 +6
Skipped Tests 📉 -55

➕ New Tests (6)

View new tests
  • test_propagator_loaded_if_mentioned_in_environment_variable
    • File: tests.integrations.opentelemetry.test_entry_points
    • Status: ❌ Failing
  • test_propagator_loaded_if_mentioned_in_environment_variable
    • File: tests.integrations.opentelemetry.test_entry_points
    • Status: ❌ Failing
  • test_propagator_loaded_if_mentioned_in_environment_variable
    • File: tests.integrations.opentelemetry.test_entry_points
    • Status: ❌ Failing
  • test_propagator_loaded_if_mentioned_in_environment_variable
    • File: tests.integrations.opentelemetry.test_entry_points
    • Status: ❌ Failing
  • test_propagator_loaded_if_mentioned_in_environment_variable
    • File: tests.integrations.opentelemetry.test_entry_points
    • Status: ❌ Failing
  • test_propagator_loaded_if_mentioned_in_environment_variable
    • File: tests.integrations.opentelemetry.test_entry_points
    • Status: ❌ Failing

❌ Failed Tests

test_propagator_loaded_if_mentioned_in_environment_variable

File: tests.integrations.opentelemetry.test_entry_points
Suite: py3.10-potel
Error: assert 0 == 1 + where 0 = len([]) + where [] = propagate.propagators

Stack Trace
tests/integrations/opentelemetry/test_entry_points.py:15: in test_propagator_loaded_if_mentioned_in_environment_variable
    assert len(propagate.propagators) == 1
E   assert 0 == 1
E    +  where 0 = len([])
E    +    where [] = propagate.propagators

test_propagator_loaded_if_mentioned_in_environment_variable

File: tests.integrations.opentelemetry.test_entry_points
Suite: py3.11-potel
Error: assert 0 == 1 + where 0 = len([]) + where [] = propagate.propagators

Stack Trace
tests/integrations/opentelemetry/test_entry_points.py:15: in test_propagator_loaded_if_mentioned_in_environment_variable
    assert len(propagate.propagators) == 1
E   assert 0 == 1
E    +  where 0 = len([])
E    +    where [] = propagate.propagators

test_propagator_loaded_if_mentioned_in_environment_variable

File: tests.integrations.opentelemetry.test_entry_points
Suite: py3.12-opentelemetry
Error: assert 0 == 1 + where 0 = len([]) + where [] = propagate.propagators

Stack Trace
tests/integrations/opentelemetry/test_entry_points.py:15: in test_propagator_loaded_if_mentioned_in_environment_variable
    assert len(propagate.propagators) == 1
E   assert 0 == 1
E    +  where 0 = len([])
E    +    where [] = propagate.propagators

test_propagator_loaded_if_mentioned_in_environment_variable

File: tests.integrations.opentelemetry.test_entry_points
Suite: py3.13-opentelemetry
Error: assert 0 == 1 + where 0 = len([]) + where [] = propagate.propagators

Stack Trace
tests/integrations/opentelemetry/test_entry_points.py:15: in test_propagator_loaded_if_mentioned_in_environment_variable
    assert len(propagate.propagators) == 1
E   assert 0 == 1
E    +  where 0 = len([])
E    +    where [] = propagate.propagators

test_propagator_loaded_if_mentioned_in_environment_variable

File: tests.integrations.opentelemetry.test_entry_points
Suite: py3.14-opentelemetry
Error: assert 0 == 1 + where 0 = len([]) + where [] = propagate.propagators

Stack Trace
tests/integrations/opentelemetry/test_entry_points.py:15: in test_propagator_loaded_if_mentioned_in_environment_variable
    assert len(propagate.propagators) == 1
E   assert 0 == 1
E    +  where 0 = len([])
E    +    where [] = propagate.propagators

test_propagator_loaded_if_mentioned_in_environment_variable

File: tests.integrations.opentelemetry.test_entry_points
Suite: py3.14t-opentelemetry
Error: assert 0 == 1 + where 0 = len([]) + where [] = propagate.propagators

Stack Trace
tests/integrations/opentelemetry/test_entry_points.py:15: in test_propagator_loaded_if_mentioned_in_environment_variable
    assert len(propagate.propagators) == 1
E   assert 0 == 1
E    +  where 0 = len([])
E    +    where [] = propagate.propagators

✅ Patch coverage is 100.00%. Project has 2405 uncovered lines.
❌ Project coverage is 89.88%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
- Coverage    89.89%    89.88%    -0.01%
==========================================
  Files          192       192         —
  Lines        23763     23763         —
  Branches      8206      8206         —
==========================================
+ Hits         21360     21358        -2
- Misses        2403      2405        +2
- Partials      1343      1346        +3

Generated by Codecov Action

@alexander-alderman-webb alexander-alderman-webb marked this pull request as ready for review June 25, 2026 07:17
@alexander-alderman-webb alexander-alderman-webb requested a review from a team as a code owner June 25, 2026 07:17
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.

1 participant