Skip to content

High performance impact of server.trackEvent -- let's re-evaluate when it gets called #8375

@jankeromnes

Description

@jankeromnes

Bug description

The API method server.trackEvent() is being called too frequently, putting excessive load on our servers.

It would be good to:

  • find out which events are tracked the most frequently
  • ... re-evaluate whether they're still useful, or if we can stop tracking them
  • ... if they're still useful, see if we can send them to our analytics backend (segment) directly instead of routing them through server

server.trackEvent() seems to be called most often by the dashboard and by the IDE backends (both VS Code and JetBrains).


From Slack (internal):

trackEvent is by far our most called API method (even beating getWorkspace - and has 2x the callrate of sendHeartbeat 😬 )

It puts considerable load on our server instances.

From Grafana (internal):

Screenshot 2022-02-22 at 09 20 49

Steps to reproduce

  1. Look at the API call rates in Grafana

Workspace affected

No response

Expected behavior

No response

Example repository

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions