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

Allow upload URL to be specified for analytics #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pseudonymtim
Copy link

Problem

The circleci.analytics-clj.core/initialize function does not allow the upload URL to be set on the Analytics builder. This prevents clients from specifying a completely different URL to which to send events. Specifying the endpoint replaces the host and path prefix, but the underlying segmentio/analytics-java code appends a default path of /v1/import/ (as per com/segment/analytics/Analytics.java#L187) to the value of endpoint when building the Analytics object.

Solution

Add the upload-url argument & associated upload-url* function to access the setUploadURL Analytics builder method to allow the full URL to be specified by the client.

@pseudonymtim pseudonymtim requested a review from a team as a code owner January 26, 2024 16:11
@pseudonymtim pseudonymtim changed the title Upload url Allow upload URL to be specified for analytics Jan 26, 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.

1 participant