Skip to content

Conversation

@petzel
Copy link
Contributor

@petzel petzel commented Mar 17, 2025

Description

Refactors the eventIngestionConfig initialization option/param to eventTracking to align with docs. Also updated the default value of this setting to disable event tracking, as customers who are not using event tracking have experienced issues with read-only filesystem checks in Vercel.

How has this been tested?

  • Unit tests

batchSize?: number;
deliveryIntervalMs?: number;
disabled?: boolean;
enabled?: boolean;
Copy link
Contributor

@greghuels greghuels Mar 17, 2025

Choose a reason for hiding this comment

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

Nit: Do we actually need this at all? The eventTracking field is optional. If it's missing, it's disabled. If it's present, it's enabled. Forcing users to set an enabled field seems like an extra step that could be missed leading to confusion.

Copy link
Contributor Author

@petzel petzel Mar 17, 2025

Choose a reason for hiding this comment

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

I considered it, but passing in eventTracking: {} to enable it seemed weird, and asking users to decide on actual values to put into eventTracking is also not really necessary as we feel good about the defaults.

Copy link
Contributor

Choose a reason for hiding this comment

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

cool, that makes sense.

@petzel petzel merged commit 801210b into main Mar 18, 2025
8 checks passed
@petzel petzel deleted the eric/event-tracking-config-cleanup branch March 18, 2025 09:52
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