SAP / cf-nodejs-logging-support

Node.js Logging Support for Cloud Foundry provides the creation of structured log messages and the collection of request metrics
https://sap.github.io/cf-nodejs-logging-support/
Apache License 2.0
43 stars 22 forks source link

Write VCAP_APPLICATION data in log message #38

Closed anklei closed 5 years ago

anklei commented 5 years ago

to match functionality of the java library and to enable future use cases, some data from VCAP_APPLICATION shall be written in the logs as well.In particular:

Java implementation as reference: https://github.com/SAP/cf-java-logging-support/blob/8d835d382bf08614226b823d835cd21a6952e992/cf-java-logging-support-core/src/main/java/com/sap/hcp/cf/logging/common/VcapEnvReader.java#L32

christiand93 commented 5 years ago

Hi, the majority of the mentioned fields is already configured, but some of them have differing names:

How do we deal with the duplicated fields (component_id, component_name, component_instance)? Can we drop them?

christiand93 commented 5 years ago

As of version 5.3.1 organization_id and organization_name are read from VCAP_APPLICATION.