-
Notifications
You must be signed in to change notification settings - Fork 9
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
[BUG] React Native: Not setting correlation headers on fetch requests #9
Comments
React Native uses a polyfill from As such to avoid double reporting of both fetch and XHR for the same request ApplicationInsights does not instrument requests originating from a polyfill instance. On the grouping / correlation (I think they are probably related), I'll let someone else (@xiao-lix, @Karlie-777 or @kryalama) jump in as I'm going to be unavailable for the next couple of weeks. If |
Hi @niklas-r , |
@MSNev Thank you for your response. I also have a feeling that the grouping and correlation might be related. You're right about React Native using There's no concept of URL in React Native since it's compiled into a native app, so I don't think we can make it work with @Karlie-777 Thank you for your response. We can try to configure |
Sorry for the delayed response as I've been Away.
Correct |
Description/Screenshot
Hi
We're trying to integrate our React Native app with Applications Insight but we're facing multiple issues. Mainly, it's not setting correlation headers (
Request-Id
,Request-Context
etc.).Steps to Reproduce
OS/Browser:
SDK Version [e.g. 22]:
How you initialized the SDK:
Expected behavior
We thought this would add the necessary headers to each
fetch
request and also send the necessary tracking data to the AI backend but it seems we're only getting some data in to AI which is not being correlated with our other services.Additional context
We managed to get the application to send correlation data by adding this hack before we initialize AI.
But this feels like a bad thing to do and it still didn't correlate the requests in the application map.
We're using
react-navigation
v5 and are sendingappInsights.trackPageView(/*data*/)
on each screen change. These page views does show in AI.So our biggest issues right now are:
The text was updated successfully, but these errors were encountered: