Skip to content
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 event details to send event error log message #69

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

asatwal
Copy link
Collaborator

@asatwal asatwal commented Apr 6, 2023

Trello-975

When an error occurs in DfE::Analytics::SendEvents calling the events insert API, the error responses are logged, but the events that caused the error are not included in the log message.

Add the events to the error log message to help with error diagnosis.

Also add advice for event debugging regarding sensitive data.

@asatwal asatwal requested a review from duncanjbrown April 6, 2023 17:51
@asatwal asatwal self-assigned this Apr 6, 2023
@asatwal asatwal requested a review from BroiSatse April 12, 2023 12:35
README.md Outdated
@@ -361,6 +361,12 @@ When defining event filters, note the following:

In the above example, all create, delete or update entity events to the `course_options` table and `id` matching value `1234` will be logged, or any import entity events to the `courses` table will also be logged.

**IMPORTANT**:

Please ensure you are not logging sensitive data to debug. Your project should define blocklist and pii fields, so these should prevent any sensitive data appearing in the events.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asatwal is it worth expanding pii to personally identifiable information? Also possibly link to the documentation for the blocklist and analytics_pii.yml here?

@asatwal asatwal force-pushed the add-event-details-to-send-event-error branch from 2d3ae69 to a537f3a Compare June 29, 2023 11:31
@asatwal asatwal merged commit cde1f43 into main Jun 29, 2023
@asatwal asatwal deleted the add-event-details-to-send-event-error branch June 29, 2023 11:51
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.

3 participants