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

add sockjs connect span #440

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

blakeroberts-wk
Copy link

Motivation

Establishing a web socket connection incurs 750 ms of latency during initial app load. This is a large amount of time that we should capture via traces to help categorize opportunities of improvement based on impact.

Additionally, adding the chosen transport as an attribute will help guide future decisions w.r.t. browser messaging.

Changes

I added a span encompassing the duration it takes to establish a SockJS connection (usually a web socket connection). The span gets an attribute that's the chosen transport.

I also cleaned up the connect logic. We have a timeout parameter we aren't using that can apply to the info request of SockJS. SockJS has its own timeouts, but they don't pertain to the initial info request.

Testing/QA Instructions

Pull the changes into a wdesk build and load an experience.

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.

1 participant