Class: Google::Cloud::ErrorReporting::V1beta1::ErrorContext

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/clouderrorreporting/v1beta1/common.rb

Overview

A description of the context in which an error occurred. This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs.

Instance Attribute Summary collapse

Instance Attribute Details

#http_request::Google::Cloud::ErrorReporting::V1beta1::HttpRequestContext

Returns The HTTP request which was processed when the error was triggered.

Returns:



150
151
152
153
# File 'proto_docs/google/devtools/clouderrorreporting/v1beta1/common.rb', line 150

class ErrorContext
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#report_location::Google::Cloud::ErrorReporting::V1beta1::SourceLocation

Returns The location in the source code where the decision was made to report the error, usually the place where it was logged. For a logged exception this would be the source line where the exception is logged, usually close to the place where it was caught.

Returns:

  • (::Google::Cloud::ErrorReporting::V1beta1::SourceLocation)

    The location in the source code where the decision was made to report the error, usually the place where it was logged. For a logged exception this would be the source line where the exception is logged, usually close to the place where it was caught.



150
151
152
153
# File 'proto_docs/google/devtools/clouderrorreporting/v1beta1/common.rb', line 150

class ErrorContext
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#user::String

Returns The user who caused or was affected by the crash. This can be a user ID, an email address, or an arbitrary token that uniquely identifies the user. When sending an error report, leave this field empty if the user was not logged in. In this case the Error Reporting system will use other data, such as remote IP address, to distinguish affected users. See affected_users_count in ErrorGroupStats.

Returns:

  • (::String)

    The user who caused or was affected by the crash. This can be a user ID, an email address, or an arbitrary token that uniquely identifies the user. When sending an error report, leave this field empty if the user was not logged in. In this case the Error Reporting system will use other data, such as remote IP address, to distinguish affected users. See affected_users_count in ErrorGroupStats.



150
151
152
153
# File 'proto_docs/google/devtools/clouderrorreporting/v1beta1/common.rb', line 150

class ErrorContext
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end