Closed kristojorg closed 6 months ago
@kristojorg we are not supporting fetch instrumentation yet, we will add it in future release.
@ndesai-newrelic I see. It would be great to remove options that don't work from the github docs, website and even typscript defs if possible. It's a little frustrating to spend hours trying to get something working that the docs say will work only to open an issue to find out it isn't implemented...
Thank you!
@kristojorg our team is working on incorporating additional features based on user feedback. Although the number of HttpClient options for Capacitor is unknown, we are planning to introduce instrumentation for fetch and xhr requests. Presently, our support extends to the Capacitor HTTP client and XMLHttpRequest.
Yes I totally understand that it may take time. Just would be nice to have the API and docs reflect what's actually working
Would y'all accept a PR to remove these nonfunctional values from the type definitions?
we accept PR for this repo
Woohoo! Glad this is being implemented : )
Description
The New Relic Capacitor plugin does not record network requests made from within the webview layer, despite indicating it can automatically capture them in the docs.
Steps to Reproduce
NewRelicCapacitorPlugin.start({appKey:appToken, agentConfiguration:agentConfig})
withnetworkRequestEnabled: true
in youragentConfig
fetch
requests in your capacitor webviewExpected Behavior
The fetch request will be captured and tracked to New Relic automatically.
Your Environment
Tested in browser environment, as well as iOS and Android.