Skip to content

WIP: Add transcript events as a hook#2095

Draft
craigwalton-dsit wants to merge 2 commits intomainfrom
craig/event-hook
Draft

WIP: Add transcript events as a hook#2095
craigwalton-dsit wants to merge 2 commits intomainfrom
craig/event-hook

Conversation

@craigwalton-dsit
Copy link
Collaborator

Very rough working at this stage I'm afraid.

We wanted to add a hook for when events are logged (i.e. transcript events).

We thought we should have 2 hooks:

  • on_event() - synchronous, no batching
  • on_event_batched() - async with batching

The class deriving from Hooks should be able to specify a throttling period for batching (e.g. 10s). The reason for wanting async batching is in case users do I/O bound work on receiving these events.

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