logdna / logger-node

A nodejs logger client for LogDNA
MIT License
34 stars 17 forks source link

How to pass namespace line identifier #51

Closed vladimir-krasulya2 closed 3 years ago

vladimir-krasulya2 commented 3 years ago

Hi 👋 I'm trying to setup logging for aws lambda function and struggling to find a way how to set namespace , I've tried meta: { namespace: 'abc' } , but it's not working the same way as on k8 client.

jorgebay commented 3 years ago

Hi! namespace is a reserved property for Kubernetes logs.

You could use tags, app or env to group related applications. Those can be set in both the k8s agent and in the node.js logger on any environment.

jorgebay commented 3 years ago

@vladimir-krasulya2 let us know if we can close this ticket.