Skip to content

Instantly share code, notes, and snippets.

@maplebed
Last active October 7, 2017 23:55
Show Gist options
  • Save maplebed/fffbf83ea1b70d4be6d8e5e4f16aa91d to your computer and use it in GitHub Desktop.
Save maplebed/fffbf83ea1b70d4be6d8e5e4f16aa91d to your computer and use it in GitHub Desktop.
Shortest possible libhoney use
require 'libhoney'
honeycomb = Libhoney::Client.new(writekey: "abc123redacteddef456", dataset: 'rubytest')
data = {}
data[:test] = "Data!"
honeycomb.send_now(data)
honeycomb.close(true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment