Skip to content

🐛 API calls are not logged with withFetch() API in newer versions of Angular #2911

Closed
@gokberknur

Description

@gokberknur

if you configure an angular app with new "withFetch()" flag.

https://angular.dev/api/common/http/withFetch

api calls are not logged in datadogRUM.

we updated our application to angular v18 and started to use withFetch() flag in Angular's httpClient. We noticed that our API calls are not being logged anymore in datadog RUM.

To reproduce this issue you can try this sample-repo with fetch flag and without it in Angular HttpClient, then check the logs from RUM panel.
https://github.com/gokberknur/datadogRumNg18/blob/main/main.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions