Repository navigation
chore(rum): send RUM to self-hosted o2 - #232
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Points the browser RUM SDK at our self-hosted OpenObserve instance instead of the cloud.
site:api.openobserve.ai->o2.yoman.onlineorganizationIdentifier:hadasa_organization_50794_...->defaultclientToken: cloud RUM client token -> o2 RUM ingest tokenThe o2 token is an ingest-only credential: it authenticates
POST /rum/v1/default/{rum,logs,replay}and nothing else (it is not an API/read token). Verified against o2: the same call the SDK makes returns202and the record lands in_rumdata/_rumlog.Do not merge yet. This is the only app where
connectToOpenobserve()is actually called, so merging switches live RUM from cloud to o2. The o2 deployment currently sends noAccess-Control-Allow-Originforhttps://demo.yoman.online, so the browser would ingest but the SDK would see every response as a CORS failure and retry. Merge onceZO_CORS_ALLOWED_ORIGINSon the o2 host includes this app's origin.