Skip to content

feat(performance): start transaction for fasthttp integration#723

Merged
vaind merged 10 commits intogetsentry:masterfrom
aldy505:feat/performance/fasthttp-integration
Mar 26, 2024
Merged

feat(performance): start transaction for fasthttp integration#723
vaind merged 10 commits intogetsentry:masterfrom
aldy505:feat/performance/fasthttp-integration

Conversation

@aldy505
Copy link
Copy Markdown
Contributor

@aldy505 aldy505 commented Oct 1, 2023

I realized that only a few integration starts performance span for their HTTP handlers (such as net/http and Gin), the others are not. Here is my effort on fixing it for other integrations/frameworks.

This also introduces the GetTransactionFromContext function that takes the fasthttp.RequestCtx as input and returns *sentry.Span or nil. It handles that fasthttp.RequestCtx's context is not compatible with our sentry.GetHubFromContext due to different format of context key.

Discord link: https://discord.com/channels/621778831602221064/621786587939864586/1157114103156969513

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 1, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.93%. Comparing base (5942155) to head (0623e4a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #723      +/-   ##
==========================================
+ Coverage   81.84%   81.93%   +0.08%     
==========================================
  Files          48       48              
  Lines        4759     4782      +23     
==========================================
+ Hits         3895     3918      +23     
  Misses        725      725              
  Partials      139      139              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cleptric cleptric requested a review from ribice March 14, 2024 11:38
@aldy505 aldy505 requested a review from vaind March 26, 2024 13:11
@vaind vaind merged commit 71c244b into getsentry:master Mar 26, 2024
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.

4 participants