Skip to content

Conversation

minatooni
Copy link
Contributor

@minatooni minatooni commented Sep 26, 2025

close #804

Here, FastAPI accepts Sequence and the current implementation of InstanaASGIMiddleware insert does not cover tuple
https://github.com/fastapi/fastapi/blob/450a334253b1426aab08b4dea17b16ba8b4c098c/fastapi/applications.py#L472

Are there any document that describes how to run tests? This is super small change tho

@minatooni minatooni force-pushed the fix/tracing-fastapi-app branch from 7fcec7e to 9e8282a Compare September 26, 2025 02:52
@minatooni
Copy link
Contributor Author

Got following error on CI test but it looks like not caused by my pr

python 3.12 kafka

  • FAILED tests/clients/kafka/test_kafka_python.py::TestKafkaPython::test_trace_kafka_python_consume - AssertionError: assert 1 == 3

python 3.13 test

  • FAILED tests/frameworks/test_grpcio.py::TestGRPCIO::test_no_root_exit_span - AssertionError: assert 1 == 0
  • FAILED tests/frameworks/test_tornado_server.py::TestTornadoServer::test_get - AssertionError: assert 2 == 3

@minatooni minatooni marked this pull request as ready for review September 26, 2025 04:10
@minatooni minatooni requested a review from a team as a code owner September 26, 2025 04:10
@minatooni minatooni force-pushed the fix/tracing-fastapi-app branch from 9e8282a to 223455f Compare October 9, 2025 04:31
Copy link
Contributor Author

@minatooni minatooni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pvital Added else statement. Could you please take a look for this pr again?

Signed-off-by: minatooni <[email protected]>
@minatooni minatooni force-pushed the fix/tracing-fastapi-app branch from 65b17e0 to 889adf3 Compare October 9, 2025 06:41
Copy link
Member

@pvital pvital left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me.

@pvital pvital merged commit 9183bcb into instana:main Oct 9, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot send trace with FastAPI

2 participants