Starlette Application Stops When ElasticAPM Server is Unreachable #2571
-
Environment:Starlette version: 0.37.2 Issue Summary:When integrating ElasticAPM middleware with a Starlette application, the application ceases to function if the ElasticAPM server is unreachable. This occurs under various circumstances, such as an incorrect URL, proxy issues, or certificate verification failures. Steps to Reproduce:
Expected Behavior:The Starlette application should continue to run and handle requests normally, even if the ElasticAPM server is unreachable. The ElasticAPM client should handle server unavailability gracefully, without impacting the application's availability. Actual Behavior:The Starlette application stops running within a minute after the ElasticAPM server becomes unreachable. This behavior is consistent across various scenarios where the APM server cannot be contacted. Additional Context:This issue poses a significant risk to application reliability, as any downtime or configuration issue with the ElasticAPM server directly affects the availability of all services using the Starlette framework with ElasticAPM middleware. Demo code to reproduce the issue:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Doesn't look like a Starlette issue. Did you check with the Elastic team? |
Beta Was this translation helpful? Give feedback.
Doesn't look like a Starlette issue. Did you check with the Elastic team?