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

RUMM-1605 Use Native resource type instead of XHR #605

Merged
merged 1 commit into from
Sep 24, 2021

Conversation

xgouchet
Copy link
Member

What and why?

Use native resource type instead of xhr. The latter was used as a legacy based on the Browser RUM SDK, but we need something more relevant for mobile apps.

@xgouchet xgouchet requested a review from a team as a code owner September 23, 2021 09:09
kind: RUMResourceType(request: interception.request),
kind: nil,
Copy link
Contributor

Choose a reason for hiding this comment

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

i guess you forgot nil here.?

Copy link
Member

Choose a reason for hiding this comment

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

And I'm wondering, why do we remove RUMResourceType(request: interception.request) here 🤔💭?

The way it works:
We first try to deduce kind from request, and then read it from response. At the end, request has priority:

let resourceType: RUMResourceType = resourceKindBasedOnRequest ?? command.kind

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried something and forgot to change this back

@xgouchet xgouchet force-pushed the xgouchet/RUMM-1605/native_resource branch from ff8629f to 4481075 Compare September 23, 2021 11:27
@xgouchet xgouchet merged commit e4f293f into master Sep 24, 2021
@ncreated ncreated mentioned this pull request Sep 28, 2021
2 tasks
@xgouchet xgouchet deleted the xgouchet/RUMM-1605/native_resource branch September 12, 2023 09:14
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