Interface ServiceContext (10.5.0)

For logged errors, one can provide a the service context. For more information see [this guide]https://cloud.google.com/error-reporting/docs/formatting-error-messages and the [official documentation]https://cloud.google.com/error-reporting/reference/rest/v1beta1/ServiceContext.

Package

@google-cloud/logging

Properties

service

service?: string;

An identifier of the service, such as the name of the executable, job, or Google App Engine service name.

version

version?: string;

Represents the version of the service.