Global

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.

NODEJS_BUNYAN_DEFAULT_LIBRARY_VERSION

Default library version to be used Using release-please annotations to update DEFAULT_INSTRUMENTATION_VERSION with latest version. See https://github.com/googleapis/release-please/blob/main/docs/customizing.md#updating-arbitrary-files

Methods

getCurrentTraceFromAgent()

Gets the current fully qualified trace ID when available from the

(async) middleware()

Express middleware