Events: Inject tracker if events are enabled
With this PR, can we finally enable? Or should we keep line 62 below?
60 // Events indicates the various types of events to be captured typically for injecting tracker URLs 61 // within the VAST XML 62 // Don't enable this feature. It is still under developmment. Please follow https://github.com/prebid/prebid-server/issues/1725 for more updates 63 type Events struct { 64 Enabled bool `mapstructure:"enabled" json:"enabled"` 65 DefaultURL string `mapstructure:"default_url" json:"default_url"` 66 VASTEvents []VASTEvent `mapstructure:"vast_events" json:"vast_events,omitempty"` 67 } config/events.go@bsardo you edited line 64 some time ago, are we ready to enable?
I'm not sure off the top of head. @Pubmatic-Dhruv-Sonone are you expecting to open additional PRs to complete this feature?
@bsardo I will be creating new PR for Prometheus stats and moving existing impression tracker URL to event framework.
@bsardo Addressed comments. Please check.
Hi @Pubmatic-Dhruv-Sonone, we recently released PBS 3.0, more specifically v3.1.0, which updates Prebid Server package import references throughout the project from v2 to v3. For example:
import (
"github.com/prebid/prebid-server/v3/adapters"
)
As a result, please merge with master (no rebase) and then ensure all Prebid Server package import references in the files you’ve changed are v3 so we can resume reviewing. Thanks!
@bsardo Merged the latest prebid master. Please check.
@Pubmatic-Dhruv-Sonone see my latest comments.
@Pubmatic-Dhruv-Sonone as discussed offline, I will look into whether events_enabled is still in use to determine if this is a breaking change. I still need your input on this comment though.
@bsardo : If I can remember correctly, events_enabled is old flag. And we have introduced events.enabled flag. and planned to deprecate events_enabled with proper migration