Sending events
Honeybadger’s Go package can be used to send events to Honeybadger Insights.
Sending events
Section titled “Sending events”Use honeybadger.Event() to send custom events:
honeybadger.Event("user_login", map[string]any{ "user_id": 123, "email": "user@example.com",})The first argument is the event type, and the second is a map of event data.
Events are batched and sent asynchronously for optimal performance.
Configuration
Section titled “Configuration”You can configure batching, retries, and throttling behavior. See Configuration for details on the following options:
| Option | Default | Description |
|---|---|---|
EventsBatchSize | 1000 | Maximum events per batch |
EventsTimeout | 30 seconds | Request timeout |
EventsMaxQueueSize | 100000 | Maximum events to queue |
EventsMaxRetries | 3 | Maximum retry attempts |
EventsThrottleWait | 60 seconds | Wait time before retrying |
EventsDropLogInterval | 60 seconds | Interval for logging dropped events |