Skip to content

Move event initialization to right before reporting, fixes #2065 - #2067

Merged
rfay merged 1 commit into
ddev:masterfrom
rfay:20200204_instrumentation_empty_events
Feb 10, 2020
Merged

rfay merged 1 commit into
ddev:masterfrom
rfay:20200204_instrumentation_empty_events

Conversation

@rfay

@rfay rfay commented Feb 4, 2020

Copy link
Copy Markdown
Member

The Problem/Issue/Bug:

#2065 reports that most (all?) of the event description in Segment/Amplitude is missing. It was reported as just being the "type" field, but really everything is missing.

How this PR Solves The Problem:

As in another bug, #1882, the codebase has a long history of depending on init() for lots of things, and init() is a lousy cheater, with poorly-defined execution order.

The actual population of the event struct should happen right before the event is to be sent, and that should do the job (assuming the correct analysis of the problem)

Manual Testing Instructions:

Automated Testing Overview:

Related Issue Link(s):

Release/Deployment notes:

@rfay
rfay merged commit fe4801d into ddev:master Feb 10, 2020
@rfay
rfay deleted the 20200204_instrumentation_empty_events branch February 10, 2020 19:32
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