-
Notifications
You must be signed in to change notification settings - Fork 742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add instance level enable_events config #2479
Comments
@shahinrahbariasl - I'm ok with a host-level flag, but it would be overridden by account-level config. The order of precedence we use in PBS is
If you want to deviate from this convention for this use case, please explain the scenario |
@bretg we are working on #1725. As a part of this thing we have introduced events.enabled flag and planning to deprecate accounts.events_enabled flag (As per #3 - https://docs.google.com/document/d/1tH6I9Vho-_KaUIGNCMum9JwbxHDc0FyG2wD8T-h3wkY/edit?usp=sharing mentioned here)) |
Hi @bretg and @ShriprasadM , I was thinking more like the other way which would be instance level flag taking precedence since the use case I'm trying to tackle is, when hosting PBS, we would want to enable events for all accounts without the need to update the existing stored accounts or create new ones. I had a draft PR which I just mentioned in this issue. The existing logic only checks for
If we want to make stored accounts override instance level, the current config is With the above logic, in case someone needs to disable events for an account, they can then remove the instance level config and manage the events per account with stored accounts. Let me know what you think or if I'm missing something. |
Ok was able to make stored account override instance level by changing stored account event flag to |
I got confused; ignore the above. |
Closing. This is complete. Instead of an |
Currently events such as imp and win can be enabled in Prebid Server using stored accounts (by setting
enable_events
) on accounts level. This requires a new stored account to be created for every new account. However we can moveenable_events
config to instance level. That way if hosting PBS, events tracking can be enabled/disabled for all accounts.More info:
PBS event handler checks for events being enabled:
prebid-server/endpoints/events/event.go
Line 108 in 5cc5da9
The text was updated successfully, but these errors were encountered: