The README has the following example for setContext:
logdna.addContext({
// Add any custom metadata such as:
version: 'v1.0.2',
sessionReplay: 'http://mySessionReplayTool/',
user: {
email: 'user@email.email',
},
});
user throws an error as the ContextT object is typed as { [key: string]: string }. Should it be { [key: string]: string | { [key: string]: string } or does it not allow some amount of recursion here on objects?
The README has the following example for
setContext
:user
throws an error as theContextT
object is typed as{ [key: string]: string }
. Should it be{ [key: string]: string | { [key: string]: string }
or does it not allow some amount of recursion here on objects?