Closed stuartleeks closed 4 months ago
Tested setting OTEL_PYTHON_DISABLED_INSTRUMENTATIONS=azure-sdk,django,fastapi,flask,psycopg2,requests,urllib,urllib3
but no difference.
Commented out FastAPIInstrumentor.instrument_app
call and this looked better
With a user load of 50:
Scenario | Mean response time (ms) | P95 response time (ms) |
---|---|---|
Without App Insights | 12ms | 20-30 |
With App Insights | 42ms | 200-250 |
With App Insights but without FastAPIInstrumentor.instrument_app |
17ms | 30-100 |
Screenshot of locust test showing improved results with FastAPIInstrumentor.instrument_app
commented out:
I initially added FastAPIInstrumentor when exploring telemetry this is currently used to provide traces, but the key telemetry at the moment is metrics, so I will remove the instrument_app call
The screenshot below shows the perf results from running load tests on my laptop
With a user load of 50:
Screenshot of locust chart without App Insights:![image](https://github.com/stuartleeks/aoai-simulated-api/assets/1824461/5063caef-f60e-4708-85f8-5c4ca3585f09)
Screenshot of locust chart with App Insights:![image](https://github.com/stuartleeks/aoai-simulated-api/assets/1824461/7f92973f-ae5e-4ee6-a138-13d8874bf8a8)