# Functions
AddBreadcrumb records a new breadcrumb.
AddGlobalEventProcessor adds processor to the global list of event processors.
CaptureEvent captures an event on the currently active client if any.
CaptureException captures an error.
CaptureMessage captures an arbitrary message.
ConfigureScope is a shorthand for CurrentHub().ConfigureScope.
CurrentHub returns an instance of previously initialized Hub stored in the global namespace.
ExtractStacktrace creates a new Stacktrace based on the given error.
Flush waits until the underlying Transport sends any buffered events to the Sentry server, blocking for at most the given timeout.
GetHubFromContext tries to retrieve Hub instance from the given Context struct or return nil if one is not found.
HasHubOnContext checks whether Hub instance is bound to a given Context struct.
Init initializes the SDK with options.
LastEventID returns an ID of last captured event.
NewClient creates and returns an instance of Client configured using ClientOptions.
NewDsn creates an instance of Dsn by parsing provided url in a string format.
NewEvent creates a new Event.
NewFrame assembles a stacktrace frame out of runtime.Frame.
NewHTTPSyncTransport returns a new pre-configured instance of HTTPSyncTransport.
NewHTTPTransport returns a new pre-configured instance of HTTPTransport.
NewHub returns an instance of a Hub with provided Client and Scope bound.
NewRequest returns a new Sentry Request from the given http.Request.
NewScope creates a new Scope.
NewStacktrace creates a stacktrace using runtime.Callers.
PopScope is a shorthand for CurrentHub().PopScope.
PushScope is a shorthand for CurrentHub().PushScope.
Recover captures a panic.
RecoverWithContext captures a panic and passes relevant context object.
SetHubOnContext stores given Hub instance on the Context struct and returns a new Context.
WithScope is a shorthand for CurrentHub().WithScope.
# Constants
HubContextKey is the key used to store the current Hub.
Describes the severity of the event.
Describes the severity of the event.
Describes the severity of the event.
Describes the severity of the event.
Describes the severity of the event.
RequestContextKey is the key used to store the current http.Request.
Version is the version of the SDK.
# Variables
Logger is an instance of log.Logger that is use to provide debug information about running Sentry Client can be enabled by either using Logger.SetOutput directly or with Debug client option.
# Structs
Breadcrumb specifies an application event that occurred before a Sentry event.
Client is the underlying processor that is used by the main API and Hub instances.
ClientOptions that configures a SDK Client.
Dsn is used as the remote address source to client transport.
DsnParseError represents an error that occurs if a Sentry DSN cannot be parsed.
Event is the fundamental data structure that is sent to Sentry.
EventHint contains information that can be associated with an Event.
Exception specifies an error that occurred.
Frame represents a function call and it's metadata.
HTTPSyncTransport is an implementation of Transport interface which blocks after each captured event.
HTTPTransport is a default implementation of Transport interface used by Client.
Hub is the central object that manages scopes and clients.
Request contains information on a HTTP request related to the event.
Scope holds contextual data for the current scope.
SdkInfo contains all metadata about about the SDK being used.
SdkPackage describes a package that was installed.
Span describes a timed unit of work in a trace.
Stacktrace holds information about the frames of the stack.
Thread specifies threads that were running at the time of an event.
TraceContext describes the context of the trace.
User describes the user associated with an Event.
# Interfaces
EventModifier is the interface that wraps the ApplyToEvent method.
Integration allows for registering a functions that modify or discard captured events.
Transport is used by the Client to deliver events to remote server.
# Type aliases
BreadcrumbHint contains information that can be associated with a Breadcrumb.
EventID is a hexadecimal string representing a unique uuid4 for an Event.
EventProcessor is a function that processes an event.
Level marks the severity of the event.