libhoney_dart 0.1.0 copy "libhoney_dart: ^0.1.0" to clipboard
libhoney_dart: ^0.1.0 copied to clipboard

A Dart implementation of Honeycomb client library (or Libhoney) for Honeycomb.io

example/example.dart

import 'package:libhoney_dart/libhoney_dart.dart';

// Main function
void main() {
  Libhoney honey = Libhoney(writeKey: "API_KEY", dataset: "your_dataset");

  Event event = Event(honey);
  event.addField("user ID", 4829034023923094);
  event.addMap({"access": "member", "crashed": false});
  event.metadata = "EVENT_1";

  // Awaiting this will force the code to wait for the response in honey.responseQueue
  event.send();
}
0
likes
120
pub points
53%
popularity

Publisher

unverified uploader

A Dart implementation of Honeycomb client library (or Libhoney) for Honeycomb.io

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

http

More

Packages that depend on libhoney_dart