Open brianpham93 opened 7 months ago
@brianpham93 looks like the issue is in JSON.stringify, after a quick internet search looks like some type replacement can be done to prevent this error, can you share some sample winston log we can use to reproduce?
@brianpham93 Did you have any luck with your serialization issue?
@brianpham93 Did you have any luck with your serialization issue?
i'm using this working around temporarily
BigInt.prototype.toJSON = function () {
return this.toString();
};
@brianpham93 Is there anything about your scenario that makes converting the Big Int to a string not work for you in the long term?
@JacksonWeber So far i haven't found out any issue with current approach
@brianpham93 Awesome! Mind if I mark this issue as complete in that case?
@JacksonWeber No issue. It would be better if this is supported natively in app insights via a separate PR
I use
winston
andwinston-azure-application-insights
to log directly to application insights I'm getting this error when log an object that contains BigInt dataDoes ApplicationInsights support BigInt or is there anything wrong with the way i'm logging data ?
Version: 2.9.1 Host: macOS 14, Apple Silicon