Commit graph

647 commits

Author SHA1 Message Date
Alexander
676041d90b
Ender logic update (#1435)
* feat(backend): new session end detection logic + several fixes

* feat(backend): support partitions managment in ender

* feat(backend): added new consumer support to redis

* feat(backend): added support for new consumer in kafka

* feat(backend): added new consumer support to redis (ee)

* feat(backend): small refactoring in ender
2023-08-03 14:57:15 +04:00
Alexander Zavorotynskiy
900a25993f fix(backend): removed mini ddos of sessions with negative duration 2023-07-31 15:48:25 +04:00
Alexander Zavorotynskiy
9d7cc4935d fix(backend): fixed missing js_exception issue type in sessions table 2023-07-31 10:34:46 +04:00
rjshrjndrn
62c6e06b1e fix(patch): Get correct chart name
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
2023-07-13 11:53:52 +02:00
Alexander Zavorotynskiy
ae0e9a1167 feat(backend): added comment about TLS for redis 2023-07-06 14:45:53 +02:00
Alexander Zavorotynskiy
02ef8dbf38 fix(backend): upgraded imports to fix critical vulnerability 2023-07-06 11:27:22 +02:00
Alexander
4b8f3bee25
Sessions refactoring (#1371)
* feat(backend): moved sql requests related to sessions table to one place

* feat(backend): refactoring in db.Saver handler

* feat(backend): hude refactoring in db/postgres module

* fix(backend): workable feature flags

* fix(backend): workable integrations

* fix(backend): workable sessions and projects modules

* fix(backend): added missed projects module to sessions

* feat(backend): renaming

* feat(backend): moved session struct to sessions module and split methods into interface, cache and storage levels

* feat(backend): moved project struct to projects module

* feat(backend): added projects model

* feat(backend): implemented new in memory cache for sessions and projects

* feat(backend): implemented new cache in projects

* feat(backend): there are 2 methods in cache module now: Get() and GetAndRefresh()

* feat(backend): added cache update operations

* fix(backend): fixed import cycle

* fix(backend): fixed panic in db message handler

* fix(backend): fixed panic in projects module

* fix(backend): fixed panic in sessions.GetDuration

* feat(backend): added direct call to get session duration if session is already in cache

* feat(backend): used pg pool everywhere except db service

* fix(backend): added missing part after rebase

* fix(backend): removed old sessions file

* feat(backend): added refactored redis client with produce/consume options

* feat(backend): added cache layer for projects

* fix(backend): added missing redis config

* fix(backend): added missing method for producer

* feat(backend): cache integration for sessions

* feat(backend): temporary method to get session directly from db

* feat(backend): adapt EE version of message handler

* fix(backend): fixed issue in fts realisation

* fix(backend): added redis cache to sessions module

* fix(backend): set 0 duration or hesitation time for inputs without focus event

* feat(backend): added cache for session updates and failover mechanism for batch.Insert() operation

* feat(backend): debug log

* feat(backend): more debug log

* feat(backend): removed debug log

* fix(backend): fixed an issue of tracking input events with empty label

* fix(backend): disabled debug log in projects cache

* fix(backend): renamed session updater

* fix(backend): fixed closed pool issue in DB service

* fix(backend): fixed dead lock in db Stop() method

* fix(backend): fixed panic in heuristics service

* feat(backend): enabled redis cache in projects

* feat(backend): clear cache on each update operation

* feat(backend): fully integrated cache layer with auto switch

* feat(backend): small refactoring in session updates

* fix(backend): fixed wrong events counter issue

* feat(backend): enabled full cache support in ender and http services

* fix(backend/ee): added missed import

* feat(backend): added second cache layer for db to speed up the service

* feat(backend): disable redis cache

* feat(backend): moved redis cache to ee
2023-07-06 10:55:43 +02:00
Alexander Zavorotynskiy
4e7b03581c feat(backend): added customIssue to issueEvent convertor 2023-06-26 14:35:41 +02:00
Alexander Zavorotynskiy
00ca3d6184 feat(backend): added user's state and city to CH 2023-06-22 14:26:31 +02:00
Alexander
db7d624b3b
[Backend] feature flags (#1354)
* feat(backend): added ff mock

* feat(backend): added feature flag pg method

* fix(backend): fixed ff request field

* feat(backend): added multivariant support

* feat(backend): added logic handler for feature flag filters

* fix(backend): correct sql request for multivariants flags

* feat(backend): added new fields to sessionStart response

* feat(backend): removed unused fields from getFeatureFlags request

* fix(backend): removed comments

* feat(backend): added debug logs

* feat(backend): added single type case for arrayToNum parser

* feat(backend): added unit tests for feature flags
2023-06-21 13:41:06 +02:00
Alexander Zavorotynskiy
d4b8d3a7f9 refactor(backend): deleted old unused code 2023-06-21 12:39:29 +02:00
Alexander Zavorotynskiy
73a4339db2 fix(backend): added toUpper() method for network requests to avoid ignoring http methods in low case 2023-06-12 11:45:26 +02:00
Alexander
8e58c367dd
Fixed issue with wrong expiration timeout for projects (#1300)
* fix(backend): fixed issue with wrong expiration timeout for projects in cache layer

* fix(backend): removed direct call db.GetProject()

* feat(backend): set default PROJECT_EXPIRATION to 10 minutes
2023-06-08 18:08:53 +02:00
Alexander
f89d84232a
[DB] Added support for city/state autocomplete (#1317)
* feat(backend): added support for city/state autocomplete

* fix(backend): removed unused http handlers
2023-06-08 15:59:53 +02:00
Alexander
111d6a1b54
Azure support (#1270)
* feat(backend): implemented azure blob storage support

* feat(backend): added azure implementation to backend services

* feat(backend): added azure blob storage support to chalice service

* fix(backend): removed prev version of s3

* feat(backend): moved azure support to ee subfolder

* feat(backend): prepared ee code for new utils.objects package

* feat(backend): added missed modules to go.mod

* feat(backend): added missed modules to go.sum

* feat(backend): go mod tidy

* feat(backend): temporary made s3 vars are not required

* feat(backend): added azure lib to ee chalice

* feat(api): changed azure env var name

* feat(api): added new object store and extra methods to chalice ee

* fix(api): added azure blob lib to alerts

* fix(api): fixed incorrect call in sessions_devtool

* fix(crons): added azure blob storage library to requirements list

* chore(build): Error message for not providing flag.

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>

* feat(backend): removed ios headers and object store for ios messages

* feat(backend): object config refactoring

* chore(helm): Update BUCKET_NAME

* fix(backend): removed object storage usage in http

* feat(backend): added debug logs to azure upload method

* fix(backend): fixed empty folder issue

* fix(backend): removed extra debug log

* chore(helm): Adding global variables for crons

* chore(helm): Remove clickhouse resource limit

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>

* fix(backend): removed assets debug log

* feat(api): use ABC class instead of empty interface

* feat(api): renamed helpers to generators

* feat(api): changed prep/clean dev scripts

* feat(api): changed name obj_store -> StorageClient

* feat(api): some changes after code review

* fix(api): removed unnecesery packages in oss api

* feat(backend): moved azure implementation to ee folder

---------

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
Co-authored-by: rjshrjndrn <rjshrjndrn@gmail.com>
2023-06-08 13:31:54 +02:00
Alexander
691c84d5f4
[HTTP] added city and state support for geo extractor (#1312)
* feat(backend/http): added city and state support for geo extractor

* feat(backend): use new GeoLite db in Dockerfile

* feat(backend/http): added unit test
2023-06-08 09:07:08 +02:00
Delirium
2ed4bba33e
feat(tracker/ui): support for multi tab sessions (#1236)
* feat(tracker): add support for multi tab sessions

* feat(backend): added support of multitabs

* fix(backend): added support of deprecated batch meta message to pre-decoder

* fix(backend): fixed nil meta issue for TabData messages in sink

* feat(player): add tabmanager

* feat(player): basic tabchange event support

* feat(player): pick tabstate for console panel and timeline

* fix(player): only display tabs that are created

* feat(player): connect performance, xray and events to tab state

* feat(player): merge all tabs data for overview

* feat(backend/tracker): extract tabdata into separate message from batchmeta

* fix(tracker): fix new session check

* fix(backend): remove batchmetadeprecated

* fix(backend): fix switch case

* fix(player): fix for tab message size

* feat(tracker): check for active tabs with broadcast channel

* feat(tracker): prevent multiple messages

* fix(tracker): ignore beacons from same tab, only ask if token isnt present yet, add small delay before start to wait for answer

* feat(player): support new msg struct in assist player

* fix(player): fix some livepl components for multi tab states

* feat(tracker): add option to disable multitab

* feat(tracker): add multitab to assist plugin

* feat(player): back compat for tab id

* fix(ui): fix missing list in controls

* fix(ui): optional list update

* feat(ui): fix visuals for multitab; use window focus event for tabs

* fix(tracker): fix for dying tests (added tabid to writer, refactored other tests)

* feat(ui): update LivePlayerSubHeader.tsx to support tabs

* feat(backend): added tabs support to devtools mob files

* feat(ui): connect state to current tab properly

* feat(backend): added multitab support to assits

* feat(backend): removed data check in agent message

* feat(backend): debug on

* fix(backend): fixed typo in message broadcast

* feat(backend): fixed issue in connect method

* fix(assist): fixed typo

* feat(assist): added more debug logs

* feat(assist): removed one log

* feat(assist): more logs

* feat(assist): use query.peerId

* feat(assist): more logs

* feat(assist): fixed session update

* fix(assist): fixed getSessions

* fix(assist): fixed request_control broadcast

* fix(assist): fixed typo

* fix(assist): added missed line

* fix(assist): fix typo

* feat(tracker): multitab support for assist sessions

* fix(tracker): fix dead tests (tabid prop)

* fix(tracker): fix yaml

* fix(tracker): timers issue

* fix(ui): fix ui E2E tests with magic?

* feat(assist): multitabs support for ee version

* fix(assist): added missed method import

* fix(tracker): fix fix events in assist

* feat(assist): added back compatibility for sessions without tabId

* fix(assist): apply message's top layer structure before broadcast call

* fix(assist): added random tabID for prev version

* fix(assist): added random tabID for prev version (ee)

* feat(assist): added debug logs

* fix(assist): fix typo in sessions_agents_count method

* fix(assist): fixed more typos in copy-pastes

* fix(tracker): fix restart timings

* feat(backend): added tabIDs for some events

* feat(ui): add tab change event to the user steps bar

* Revert "feat(backend): added tabIDs for some events"

This reverts commit 1467ad7f9f.

* feat(ui): revert timeline and xray to grab events from all tabs

* fix(ui): fix typo

---------

Co-authored-by: Alexander Zavorotynskiy <zavorotynskiy@pm.me>
2023-06-07 10:40:32 +02:00
Alexander
fe0840ee84
feat(backend): added support for new env variable to enable/disable Access-Control-* headers (#1308) 2023-06-06 16:54:56 +02:00
Alexander Zavorotynskiy
72ccac1aed fix(backend): added COMPRESSION_THRESHOLD env variable to Dockerfile 2023-05-09 17:50:16 +02:00
Alexander Zavorotynskiy
2c6f9a15ab fix(backend): added Content-Encoding to CORS for http service 2023-05-09 17:35:17 +02:00
Alexander
a0b842f13c
feat(backend): insert referrer to sessions table (#1237) 2023-05-05 18:22:49 +02:00
Alexander Zavorotynskiy
cdb6ab8b60 fix(backend): reduced ender tick duration 2023-05-05 11:34:21 +02:00
Alexander Zavorotynskiy
b111cb55c7 fix(backend): correct compression ratio value 2023-05-05 09:45:39 +02:00
Alexander
528d1af173
Compression worker (#1233)
* feat(backend): added extra worker for session compression

* feat(backend): debug logs

* feat(backend): added compression ratio metric

* feat(backend): reduced number of duplicate logs

* feat(backend): rewrite workers managment
2023-05-04 17:46:43 +02:00
Alexander
742c038ecd
New env variable CLOUD (aws by default) (#1232)
* feat(backend): added new env variable CLOUD (aws by default)

* chore(backend): Adding env variable for CLOUD

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>

---------

Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
Co-authored-by: rjshrjndrn <rjshrjndrn@gmail.com>
2023-05-04 16:48:48 +02:00
Alexander Zavorotynskiy
ac71e55a80 chore(backend): upgraded go to 1.19 and ClickHouse to 2.9.1 2023-05-03 09:16:13 +02:00
Alexander Zavorotynskiy
8aa14a68c9 fix(backend): disabled debug log in http handler 2023-05-02 16:59:57 +02:00
Alexander
c98a93cfd4
[Storage] timestamp sorting and filtering (#1218)
* feat(backend): combined sorting by index and timestamp

* feat(backend): write the only last timestamp message in a row
2023-04-28 12:28:46 +02:00
Alexander Zavorotynskiy
31c4e811c8 feat(backend): updated go.mod file 2023-04-26 12:40:02 +02:00
Alexander
44d550ca3e
Remove message index from mob file (#1213)
* feat(backend): removed message index from mob file messages

* feat(backend): remove duplicated messages (by message index)

* feat(backend): added MAX_INDEX at the begining of session to indicate a new version of mob file

* feat(backend): added comments to code
2023-04-26 12:33:51 +02:00
Alexander
19fc925462
Improved session compression (#1200)
* feat(backend): implemented new compression
2023-04-25 10:25:25 +02:00
Alexander
ef9fed8bf8
[Storage] different order to compress and encrypt (#1182)
* feat(backend): try to compress and encrypt in a new way
2023-04-19 11:04:35 +02:00
Alexander
e09396eaa3
Encryption metrics (#1151)
* feat(backend): added metric to measure the duration of session encryption

* feat(backend): enabled ecnryption

* feat(backend): fixed typo issue in packSession method
2023-04-12 15:00:55 +02:00
Alexander
d74ed000fa
Enable session encryption (#1121)
* feat(backend): enable session encryption

* feat(backend): fixed updated method name in failover algo

* feat(backend): disable encryption by default
2023-04-11 16:44:26 +02:00
Alexander Zavorotynskiy
e22845049d feat(backend): removed debug logs in http methods 2023-04-11 16:19:35 +02:00
Alexander Zavorotynskiy
f465d16110 feat(backend): removed debug logs in http methods 2023-04-11 16:19:35 +02:00
Alexander Zavorotynskiy
2a9c64ef16 feat(backend): debug log for body content 2023-04-11 16:19:35 +02:00
Alexander Zavorotynskiy
05e47e978b feat(backend): added compression threshold to start request 2023-04-11 16:19:35 +02:00
Alexander Zavorotynskiy
33fbdb149f feat(backend): more debug logs 2023-04-11 16:19:35 +02:00
Alexander Zavorotynskiy
cb0743cc1e feat(backend): added extra logs 2023-04-11 16:19:35 +02:00
Alexander Zavorotynskiy
12e4a5b59c feat(backend): using custom library for unzipping request body 2023-04-11 16:19:35 +02:00
Alexander Zavorotynskiy
6b665848bb feat(backend): implemented unzipping for http requests with gzip content-type 2023-04-11 16:19:35 +02:00
Alexander
1125d0c15d
feat(backend): stopped inserting input values into the database (#1068) 2023-04-11 16:04:24 +02:00
Alexander
f561593b1a
Memory control manager (#1067)
* feat(backend): added a mechanism to control memory consumption

* feat(backend): extra log for system allocation

* feat(backend): implemented new memory manager in db and heuristics service
2023-04-11 16:01:37 +02:00
Alexander Zavorotynskiy
5900e00983 feat(backend): upgrade /x/net library 2023-03-28 13:29:01 +02:00
Alexander Zavorotynskiy
561f333870 feat(backend/assets): set 30 days cache age for all s3 files 2023-03-22 12:59:02 +01:00
Alexander Zavorotynskiy
517b98197a feat(backend/assets): skip text/html content type files 2023-03-22 12:54:27 +01:00
Alexander Zavorotynskiy
9f71d1a6b3 feat(backend): added support for new version of ResourceTiming 2023-03-22 10:00:06 +01:00
nick-delirium
7156fa0fc4 change(tracker): fix msgs format 2023-03-22 10:00:06 +01:00
nick-delirium
d65e789b5b change(ui): regen messages; wait for player initialization; insert event lists instead of creating new ones 2023-03-22 10:00:06 +01:00