Correlate logs using SessionId
thomas-vercoutre-nzta opened this issue · 2 comments
I'm trying to correlate logs between our iOS app and our backend.
All the logs are sent to ApplicationInsights and I was trying to get the current SessionID so I can add it as a header when calling the backend API.
Is there a way to get the current SessionID ? Was checking the code and it seems it is all internal ?
Hello @thomas-vercoutre-nzta thanks for getting in touch with us!
We are not planning to provide an API for retrieving a session id. Also, you can do correlation using custom define property. Also related:
microsoft/appcenter-sdk-react-native#994
microsoft/appcenter#2469
microsoft/appcenter#1838
Hi @aleksandr-dorofeev, I wasn't talking about creating a new API but make the internal sessionID available. something like AppCenter.SessionID so we can use that.
I'm trying to implement W3C Context tracing (see documentation) but the AppCenter SDK doesn't provide anything to do modern correlation.