Closed hanieljazzar closed 5 months ago
false alarm, was a docker file issue, apologies about that
@hanieljazzar what was your dockerfile issue? I'm running into something very similar.
Ended up figuring out my issue. I'm making a standalone build using next.js 14.2 in a multi-stage Dockerfile, so I needed to:
next-logger.config.js
was copied to the runtime image, in the same folder as server.js
next-logger
and pino
in serverComponentsExternalPackages
in next.config.js (even though they're imported in the instrumentation file)
I'm trying to add some fields to the global log, tried in both base and mixin, but the fields only get added locally, but when we deploy to a docker container, they don't show (the default json logs show though). And if I try to make a child, the fields get added under message instead of the higher level log object. Any ideas what can be done to add the fields after deployment to the higher level object?