Skip to content

feat: add frontend context logging - #1115

Merged
czgu merged 5 commits into
pinterest:masterfrom
jczhong84:feat/analytics
Jan 5, 2023
Merged

czgu merged 5 commits into
pinterest:masterfrom
jczhong84:feat/analytics

Conversation

@jczhong84

Copy link
Copy Markdown
Collaborator

Add frontend instrument logging.

@jczhong84
jczhong84 marked this pull request as draft December 24, 2022 01:00
@jczhong84
jczhong84 marked this pull request as ready for review January 4, 2023 18:18


@register("/event_log/", methods=["POST"], api_logging=False)
def log_track_event(events: list):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class FrontendEvent(TypedDict):
     timestamp: int
     event_data: dict
     event_type: str

]

def log(self, uid: int, event_type: EventType, event_data: dict):
def log(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use created_at field of EventLog?

@czgu
czgu merged commit 6a951f8 into pinterest:master Jan 5, 2023
rohan-sh1 pushed a commit to CAI-TECHNOLOGIES/cai-ext-db-explorer that referenced this pull request Feb 28, 2023
* feat: add frontend context logging

* add batch call

* udpate comment

* created_at

* move to const file
@jczhong84
jczhong84 deleted the feat/analytics branch April 7, 2023 00:40
aidenprice pushed a commit to arrowtail-precision/querybook that referenced this pull request Jan 3, 2024
* feat: add frontend context logging

* add batch call

* udpate comment

* created_at

* move to const file
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.

2 participants