Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧(api) collect sentry profiling traces #293

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Conversation

jmaupetit
Copy link
Member

Purpose

We need more insights to analyze API performances.

Proposal

  • configure Sentry's profiles_sample_rate

@jmaupetit jmaupetit self-assigned this Dec 13, 2024
@jmaupetit jmaupetit added improvement API Item related to the API service labels Dec 13, 2024
We need more insights to analyze API performances.
@jmaupetit jmaupetit force-pushed the add-api-sentry-profiling branch from 4bdb9ac to 8d71d4e Compare December 13, 2024 18:58
Copy link

Current benchmark

Type Name Request Count Failure Count Median Response Time Average Response Time Min Response Time Max Response Time Average Content Size Requests/s Failures/s 50% 66% 75% 80% 90% 95% 98% 99% 99.9% 99.99% 100% git timestamp version
GET /auth/whoami 28 0 500.0 815.2400526428637 7.733355000027586 2597.9716269999926 160.0 0.9619981348097384 0.0 510 1100 1300 1300 1800 2300 2600 2600 2600 2600 2600 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
POST /dynamique/session/ 32 0 800.0 890.0580229374972 17.256933999988178 2365.5054039999754 45.0 1.0994264397825582 0.0 810 1000 1700 1700 2100 2200 2400 2400 2400 2400 2400 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
POST /dynamique/session/bulk 17 0 1000.0 1049.016876941176 24.752719000048277 2896.3461230000007 411.0 0.584070296134484 0.0 1000 1300 1400 1400 2800 2900 2900 2900 2900 2900 2900 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
GET /dynamique/status/ 21 0 390.0 654.815187619049 32.173940999996375 2082.941452 285.0 0.7214986011073038 0.0 390 740 880 1100 1800 1900 2100 2100 2100 2100 2100 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
POST /dynamique/status/ 18 0 400.0 803.5274128333375 24.47687800002996 2303.825345000007 45.0 0.618427372377689 0.0 800 1100 1700 1700 2000 2300 2300 2300 2300 2300 2300 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
GET /dynamique/status/FRALLEGO002006P3 27 0 760.0 845.0244938518548 31.96967799999584 3420.6935230000117 283.0 0.9276410585665336 0.0 760 980 1100 1100 2100 2200 3400 3400 3400 3400 3400 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
GET /dynamique/status/FRALLEGO002006P3/history 25 0 850.0 1099.3760612400044 12.373315000047567 3407.025812000029 26401.64 0.8589269060801237 0.0 850 1700 2100 2100 2400 2500 3400 3400 3400 3400 3400 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
POST /dynamique/status/bulk 17 0 820.0 1099.2600965882389 39.81363799999826 2754.872594999995 411.0 0.584070296134484 0.0 820 1300 1700 2200 2400 2800 2800 2800 2800 2800 2800 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
POST /statique/ 29 14 830.0 1032.7803490689637 31.32444299995996 3506.422815000008 54.41379310344828 0.9963552110529434 0.4809990674048692 830 1100 1400 1800 2400 2900 3500 3500 3500 3500 3500 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
GET /statique/?limit=10 25 0 1400.0 1387.6917198000049 43.73939499998869 3035.2449740000225 13826.64 0.8589269060801237 0.0 1400 1700 1700 2100 2400 2900 3000 3000 3000 3000 3000 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
GET /statique/?limit=100 26 0 990.0 1209.4732580384596 155.81070700000055 2764.8189490000163 129006.57692307692 0.8932839823233286 0.0 990 1700 2200 2200 2400 2400 2800 2800 2800 2800 2800 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
PUT /statique/FR073EP7QU5233 25 0 850.0 994.3900430000052 43.817527000044265 2897.1105680000164 1371.0 0.8589269060801237 0.0 850 1400 1700 2000 2100 2200 2900 2900 2900 2900 2900 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
GET /statique/FRALLEGO002006P3 21 0 1100.0 1268.2322463809517 46.41775900000766 3042.8569489999973 1202.0 0.7214986011073038 0.0 1100 1700 2100 2100 2300 2800 3000 3000 3000 3000 3000 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
POST /statique/bulk 33 0 1600.0 1623.1080156666687 386.93255100002943 3228.314908000016 1129.969696969697 1.1337835160257632 0.0 1600 2100 2100 2200 2800 2900 3200 3200 3200 3200 3200 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0
Aggregated 344 14 980.0 1068.280181938955 7.733355000027586 3506.422815000008 13059.86046511628 11.8188342276625 0.4809990674048692 980 1400 1700 2000 2200 2600 2900 3200 3500 3500 3500 07f33fe 2024-12-13 18:59:15.894723+00:00 0.16.0

Comparison with the latest previous benchmark

A lower (negative) value means the current version performs better than the previous one.

Type Name Request Count Failure Count Median Response Time Average Response Time Min Response Time Max Response Time Average Content Size Requests/s
GET /auth/whoami
POST /dynamique/session/
POST /dynamique/session/bulk
GET /dynamique/status/
POST /dynamique/status/
GET /dynamique/status/FRALLEGO002006P3
GET /dynamique/status/FRALLEGO002006P3/history
POST /dynamique/status/bulk
POST /statique/
GET /statique/?limit=10
GET /statique/?limit=100
PUT /statique/FR073EP7QU5233
GET /statique/FRALLEGO002006P3
POST /statique/bulk
Aggregated

Copy link

Current benchmark

Type Name Request Count Failure Count Median Response Time Average Response Time Min Response Time Max Response Time Average Content Size Requests/s Failures/s 50% 66% 75% 80% 90% 95% 98% 99% 99.9% 99.99% 100% git timestamp version
GET /auth/whoami 5 0 34.0 99.85371939999368 12.967427999910797 300.50148700001955 160.0 0.511472331876755 0.0 34 140 140 300 300 300 300 300 300 300 300 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
POST /dynamique/session/ 10 0 170.0 455.5549470999949 15.987094999900364 1728.5808230000157 45.0 1.02294466375351 0.0 390 390 440 1100 1700 1700 1700 1700 1700 1700 1700 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
POST /dynamique/session/bulk 9 0 120.0 419.9422682221944 35.35448099989935 996.5429449999874 411.0 0.920650197378159 0.0 120 650 890 900 1000 1000 1000 1000 1000 1000 1000 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
GET /dynamique/status/ 6 0 140.0 396.5935646666594 55.5357760000561 1072.7059660000575 285.0 0.613766798252106 0.0 170 170 890 890 1100 1100 1100 1100 1100 1100 1100 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
POST /dynamique/status/ 4 0 76.0 502.9344017499682 69.95214599999144 1722.953650999898 45.0 0.409177865501404 0.0 140 140 1700 1700 1700 1700 1700 1700 1700 1700 1700 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
GET /dynamique/status/FRALLEGO002006P3 8 0 160.0 333.12463850000995 28.4524840000131 1073.8715449999745 283.0 0.818355731002808 0.0 430 430 430 430 1100 1100 1100 1100 1100 1100 1100 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
GET /dynamique/status/FRALLEGO002006P3/history 9 0 68.0 186.38192677781265 28.707602000054067 420.275093999976 8584.111111111111 0.920650197378159 0.0 68 200 380 420 420 420 420 420 420 420 420 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
POST /dynamique/status/bulk 9 0 72.0 191.394896999984 26.08529599990561 896.5827040000249 411.0 0.920650197378159 0.0 72 130 210 210 900 900 900 900 900 900 900 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
POST /statique/ 5 1 160.0 277.44287939999595 45.25233300000764 888.8966150000215 58.6 0.511472331876755 0.102294466375351 160 200 200 890 890 890 890 890 890 890 890 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
GET /statique/?limit=10 7 0 58.0 320.88376342856657 26.132495999945604 1727.2037490000685 13826.0 0.716061264627457 0.0 58 140 180 180 1700 1700 1700 1700 1700 1700 1700 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
GET /statique/?limit=100 7 0 420.0 413.626558857134 167.06031100000018 892.9147069999317 129006.0 0.716061264627457 0.0 420 430 580 580 890 890 890 890 890 890 890 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
PUT /statique/FR073EP7QU5233 6 0 62.0 91.42535083333314 49.6756820000428 179.64900899994518 1371.0 0.613766798252106 0.0 75 75 130 130 180 180 180 180 180 180 180 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
GET /statique/FRALLEGO002006P3 8 0 51.0 97.96729199999275 14.828809000050567 294.80405399999654 1202.0 0.818355731002808 0.0 62 140 170 170 290 290 290 290 290 290 290 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
POST /statique/bulk 9 0 1100.0 976.924462111116 384.2272880000337 1723.3630970000604 1108.2222222222222 0.920650197378159 0.0 1100 1100 1200 1400 1700 1700 1700 1700 1700 1700 1700 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0
Aggregated 102 1 140.0 352.39199266666293 12.967427999910797 1728.5808230000157 10960.70588235294 10.434035570285802 0.102294466375351 160 380 430 650 1100 1200 1700 1700 1700 1700 1700 0f4d21d 2024-12-13 19:01:27.114375+00:00 0.16.0

Comparison with the latest previous benchmark

A lower (negative) value means the current version performs better than the previous one.

Type Name Request Count Failure Count Median Response Time Average Response Time Min Response Time Max Response Time Average Content Size Requests/s
GET /auth/whoami
POST /dynamique/session/
POST /dynamique/session/bulk
GET /dynamique/status/
POST /dynamique/status/
GET /dynamique/status/FRALLEGO002006P3
GET /dynamique/status/FRALLEGO002006P3/history
POST /dynamique/status/bulk
POST /statique/
GET /statique/?limit=10
GET /statique/?limit=100
PUT /statique/FR073EP7QU5233
GET /statique/FRALLEGO002006P3
POST /statique/bulk
Aggregated

@jmaupetit jmaupetit merged commit a2e5ab0 into main Dec 13, 2024
15 checks passed
@jmaupetit jmaupetit deleted the add-api-sentry-profiling branch December 13, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Item related to the API service improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant