Members
LOGGING_SAMPLED_KEY
Key to use in the Bunyan payload to allow users to indicate a traceSampled flag for the request, and to store as an intermediate value on the log entry before it gets written to the Cloud logging API.
LOGGING_SPAN_KEY
Key to use in the Bunyan payload to allow users to indicate a spanId for the request, and to store as an intermediate value on the log entry before it gets written to the Cloud logging API.
LOGGING_TRACE_KEY
Key to use in the Bunyan payload to allow users to indicate a trace for the request, and to store as an intermediate value on the log entry before it gets written to the Cloud Logging logging API.
Methods
getCurrentTraceFromAgent()
Gets the current fully qualified trace ID when available from the
(async) middleware()
Express middleware