Documentation ¶
Index ¶
- func Enrich[E Event](now time.Time, hostname string, countInBatch, batchSize int, event E) E
- func Send[E Event](ctx context.Context, client Client, traceID TraceID, events []E) error
- type AbsoluteEvent
- type Client
- type Event
- type IncrementalEvent
- type JSONError
- type RequestError
- type TraceID
- type UnexpectedStatusCodeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AbsoluteEvent ¶
type Client ¶
type Client struct { URL string // contains filtered or unexported fields }
func (Client) GenerateTraceID ¶ added in v0.12.0
type Event ¶ added in v0.12.0
type Event interface { *AbsoluteEvent | *IncrementalEvent // contains filtered or unexported methods }
type IncrementalEvent ¶
type RequestError ¶ added in v0.18.0
type RequestError struct {
Err error
}
func (RequestError) Error ¶ added in v0.18.0
func (e RequestError) Error() string
func (RequestError) Unwrap ¶ added in v0.18.0
func (e RequestError) Unwrap() error
type UnexpectedStatusCodeError ¶ added in v0.18.0
type UnexpectedStatusCodeError struct {
StatusCode int
}
func (UnexpectedStatusCodeError) Error ¶ added in v0.18.0
func (e UnexpectedStatusCodeError) Error() string
Click to show internal directories.
Click to hide internal directories.