honeycombio / libhoney-go

Go library for sending data to Honeycomb
Apache License 2.0
58 stars 40 forks source link

feat: URL encode dataset #242

Closed MikeGoldsmith closed 4 months ago

MikeGoldsmith commented 4 months ago

Which problem is this PR solving?

When sending data, the dataset name forms part of the URL path and should be URL encoded so restricted characters are preserved. This is particularly important if the dataset name included a forward slash / which results in an invalid URL path and the Honeycomb API rejecting the request.

Short description of the changes