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

DO NOT MERGE: feat: add the ability to send events using the Vercel Edge SDK #217

Conversation

ldhenry
Copy link
Contributor

@ldhenry ldhenry commented Jul 31, 2023

This PR adds the ability to send events using the Vercel Edge SDK. The Edge SDK requires the client-side ID to retrieve feature flags from the Vercel Edge Config, so I had to add a new option for the serverSideKey so we can set the correct authorization header.

I have tested this locally and also published an alpha version of this branch to test in a deployed environment.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #211103: Release beta version of Vercel SDK with events enabled.

@ldhenry ldhenry changed the title Enable the option to send events in Vercel SDK feat: add the ability to send events using the Vercel SDK Jul 31, 2023
@ldhenry ldhenry changed the title feat: add the ability to send events using the Vercel SDK feat: add the ability to send events using the Vercel Edge SDK Jul 31, 2023
@ldhenry ldhenry marked this pull request as ready for review July 31, 2023 13:18
kinyoklion

This comment was marked as resolved.

Copy link
Member

@kinyoklion kinyoklion left a comment

Choose a reason for hiding this comment

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

This LGTM, you may want to wait for a signoff from @yusinto as well. In case he has any edge specific thoughts.

@ldhenry ldhenry changed the title feat: add the ability to send events using the Vercel Edge SDK DO NOT MERGE: feat: add the ability to send events using the Vercel Edge SDK Jul 31, 2023
@ldhenry
Copy link
Contributor Author

ldhenry commented Jul 31, 2023

I added DO NOT MERGE to the title because we are waiting on customer feedback of the alpha package.

@kinyoklion
Copy link
Member

@ldhenry The user agent change is now merged, so you can remove the wrapper name/version.

@ldhenry
Copy link
Contributor Author

ldhenry commented Aug 30, 2023

Closing in favor of #256

@ldhenry ldhenry closed this Aug 30, 2023
yusinto added a commit that referenced this pull request Nov 12, 2023
Edge sdks use clientSideID not sdk-key. We should be able to post events
to the eventsUri/bulk/clientSideID endpoint for edge sdks without
needing to specify the sdk key in the authorization header.

This is an alternate solution to #217. Both prs are attempting to enable
events for edge sdks.

Don't be alarmed with the filecount, it's mostly shell file fixes
unrelated to this to include a directive which seems to be needed for
local build.

---------

Co-authored-by: LaunchDarklyReleaseBot <launchdarklyreleasebot@launchdarkly.com>
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