Integrations
Honeycomb

Connect with Honeycomb

Complete these steps to set up Honeycomb integration with Small Hours:

  1. Set up Honeycomb to capture exceptions and errors in your application:

    • Use Honeycomb's SDK or library for your programming language.
    • Ensure that you're capturing and sending error events to Honeycomb.
  2. Create a derived column for error events:

    • Go to your Honeycomb environment settings.
    • Create a new derived column that identifies error events.
    • For example: IF(ISSET($exception.message), 1, 0) to flag events with exceptions.
  3. Set up a trigger for error events:

    • Navigate to Triggers in your Honeycomb environment.
    • Create a new trigger with a condition that uses your error derived column.
    • For example: SUM(error_flag) > 0 if your derived column is named "error_flag".
  4. Configure the webhook for the trigger:

    • In the trigger's "Actions" section, select "Send Webhook".
    • Set the Webhook URL to:
      https://<service_id>:<api_key>@api.smallhours.dev/v1/investigate
    • Set the HTTP method to POST.
    • In the payload, include relevant information about the error. For example:
      {
        "trigger_name": "{{TriggerName}}",
        "query_url": "{{QueryURL}}",
        "result_url": "{{ResultURL}}",
        "description": "{{Description}}",
        "error_message": "{{error.message}}",
        "error_type": "{{error.type}}",
        "stack_trace": "{{error.stack_trace}}"
      }
  5. Save the trigger configuration.

Honeycomb will now send detailed information about exceptions and errors to Small Hours, allowing for accurate and timely analysis of your application's issues.