Is there a way in the logger to put custom fields ...
# general
h
Is there a way in the logger to put custom fields to the detail view? I am using NodeJS/winson (just for fun).
Copy code
const extra = { extra : { duno: "foo", whatever: "bar" } };

app.listen(port, () => {
  logger.log('info', 'Example app listening at <http://localhost>:%d', port, extra);
});
image.png
Is there a way to extract this or let my use it in queries?
in DDog I used to put in here stuff like the
batch_id
or a
customer_id
which makes it easy to debug
h
s
Yes, that will help for injecting trace context which will help in correlation
h
or does this only work, because trace_id, span_id and trace_flags is already part of the collector ?
btw. I have no issue just talking to the collector via IP - metrics already need this hack
s
As you can see from the description, it is your winston logger + trace context injected.
h
I think this just adds the 3 fields to
<http://logger.info|logger.info>( ...
ok -check-
I go with the userguide you send me 🙂