Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Plugin audit log on events #269

Closed
mariusandra opened this issue Mar 22, 2021 · 1 comment
Closed

Plugin audit log on events #269

mariusandra opened this issue Mar 22, 2021 · 1 comment

Comments

@mariusandra
Copy link
Collaborator

Currently if for example one export plugin stops working (export server throws 500), the plugin is ignored and we won't know what event it is unless we do a full diff for event IDs in both posthog and the export destination.

There should be an easier way. Building support for retries (comment below the line here, internal discussion) would solve this, however just keeping a history of what plugins were applied to an event will give us enough information to make due in case of emergency.

I imagine we will just set a property on the ingested event, something like event.properties['$plugins_ran'] = [] and event.properties['$plugins_failed'] = [] and then push something to those arrays after plugins run. For example event.properties['$plugins_failed'].push(${plugin.id}-${toSlug(plugin.name)}`)...

This has not been asked by any user yet, though it might be useful to implement regardless.

@Twixes
Copy link
Member

Twixes commented Apr 29, 2021

I think this was addressed in #327.

@Twixes Twixes closed this as completed Apr 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants