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

Change segmentio to 'Destination' type #1008

Merged
merged 5 commits into from
Jan 10, 2024
Merged

Conversation

danieljackins
Copy link
Contributor

@danieljackins danieljackins commented Nov 30, 2023

This PR changes the segment.io plugin to 'Destination' type, to prevent any issues with other plugins impacting event delivery to Segment

Tested via confirming sending events works as expected

  • I've included a changeset (psst. run yarn changeset. Read about changesets here).

Copy link

changeset-bot bot commented Nov 30, 2023

🦋 Changeset detected

Latest commit: 7cd4a09

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@segment/analytics-next Minor
@segment/analytics-node Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -125,7 +125,7 @@ export function segmentio(

const segmentio: Plugin = {
name: 'Segment.io',
type: 'after',
type: 'destination',
Copy link
Contributor

@silesky silesky Dec 1, 2023

Choose a reason for hiding this comment

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

This means destinations (or failures) should no longer block segment! Are there any browser tests we can add to assert this behavior (I don't really care about node)?

},
}
),
sleep(100),
Copy link
Contributor

Choose a reason for hiding this comment

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

Never seen this way of setting a timeout, neat.

@danieljackins danieljackins merged commit e57960e into master Jan 10, 2024
6 checks passed
@danieljackins danieljackins deleted the segmentio-destination branch January 10, 2024 18:37
@github-actions github-actions bot mentioned this pull request Jan 10, 2024
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.

2 participants