You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
locally cls-hooked seems to be working fine. I have amiddleware:
``
app.use((req, res, next) => {
//Create new CLS contect for each request
//At this point CLS puts the new context in a map of contexts by current execution ID.
session.run( () => {
next();
});
})
I set some things further down in another middleware:
locally cls-hooked seems to be working fine. I have amiddleware:
``
app.use((req, res, next) => {
I set some things further down in another middleware:
session.set("sub", req.auth.sub); if(req.headers['X-Amzn-Trace-Id']){ session.set('X-Amzn-Trace-Id', req.headers['X-Amzn-Trace-Id']); }
and I access it in a logging service:
that works fine..
but on aws ecs/fargate I get an error on the
session.get()
:``
TypeError: Cannot read property 'get' of undefined
| 2021-05-13T16:37:49.193+01:00 | at Format.jsonFormatter [as transform] (/usr/src/app/service/logging-service.js:25:23)
``
The text was updated successfully, but these errors were encountered: