- Add hnygrpc package including support for gRPC interceptor wrapping. (#169)
- Bump otel dependencies from 0.13.0 to 0.15.1
- Bump github.com/honeycombio/libhoney-go from 0.14.1 to 0.15.0
- Write keys / API keys will now be masked in debug / console logs.
- Add GitHub release publish step (#159)
- Bump go.opentelemetry.io/contrib/propagators from 0.12.0 to 0.13.0 (#156)
- Bump github.com/gobuffalo/pop/v5 from 5.2.4 to 5.3.1 (#155)
- Add DB.BindNamed to hnysql wrapper (#157) | @matiasanaya
- Implemented B3 Propagator (#146) Thanks @Wilhansen!
- Add .editorconfig to help provide consistent IDE styling (#143)
- Update dependencies
- Add extra warnings when enabling STDOUT (#134)
- Add log when event is rejected with invalid api key (#135)
- Upgrade dependencies
- Fixing some flaky tests
- Protection from potential data race condition in propagation context generating code.
- Calling IsValid() on Honeycomb header unmarshal was preventing manual creation of trace from PropagationContext. Only verify that trace_id is provided whenever parent_id is.
- Generated Span and Trace IDs have changed from UUID4 strings to 16 and 32 character hex encoded strings. These are compatible with the W3C Trace Context specification.
- Auto-instrumentation support for Gingonic applications (thank you @Nalum!)
- Marshal / unmarshal functions for Amazon load balancer trace headers and W3C Trace Context headers (used by OpenTelemetry).
- The hnynethttp package now supports configurable hooks for parsing trace context headers from incoming HTTP requests and injecting trace context headers in outgoing HTTP requests
- Added content encoding field to
hnynethttp
responses. - Added context methods to
hnypop.DB
. Now working with latest version ofpop
.
- Added getter methods for trace and span IDs and parent IDs.
- Added response content-type and content-length to the automatic instrumentation for HTTP spans.
- Add additional go database stats to
hnysql
andhnysqlx
wrapppers. In go 1.11 and later, we additionally reportdb.conns_in_use
,db.conns_idle
,db.wait_count
, anddb.wait_duration
. See https://golang.org/pkg/database/sql/#DB.Stats
- added missing
Close
function to theStmt
type - renamed
echo
example binary for using the echo web framework so it doesn't collide with the builtin shellecho
command - updated transaction's
QueryxContext
to use a span instead of an event
- Fixed
db.error
not being added byhnysql
andhnysqlx
wrappers. - Reduction in heap allocations when creating a span.
- Fixed an issue where the libhoney transmission was being spun up without a default batch timeout, so spans were only getting sent when they hit the batch max (50) rather than after a 100ms timeout.
- Use libhoney defaults for all missing parameters during initialization (previously the beeline had a few values that differed from the libhoney defaults).
- Added the Contributors file listing people that have made contributions to the Beeline
- Fix race condition when concurrently adding children and sending a non-root span. Contribution by @carlosgaldino
- @jamietsao contributed middleware for the Echo router (https://echo.labstack.com/)
- Events that were coming in with an existing sample rate to a beeline configured to do additional sampling were not computing the final sample rate correctly. This change fixes the sample rate in that specific case.
- Added missing comment describing the semantics of the
dataset
field in the trace propagation header added in v0.3.5
- Sample rate returned by the sampler hook was incorrectly being multiplied with the default global sample rate.
- Add a
libhoney.Client
as a configurable item in the beeline initial config. This allows full control over the underlying transmission of spans, so you can replace the HTTP transport or adjust queue sizes and so on
- Add
CopyContext
function to simplify moving trace metadata to a new context (for example, when trying to avoid a cancellation in an async span). - Improve handling of broken or partial trace propagation headers
- Add
dataset
to serialized trace headers to allow one service with multiple upstream callers to send spans to the right destination dataset
- Delete spans from the trace when they're sent for improved memory management
- Add a benchmark
- Add URL queries and add name even when empty
- Fix multiple races when sending spans. (honeycombio#39 and honeycombio#40)
- Fix race condition on map access that can occur with Sampler and Presend hooks when AddField is called concurrently with Send.
NewResponseWriter
no longer returns a concrete type directly usable as anhttp.ResponseWriter
. It now exposes the wrappedhttp.ResponseWriter
through the fieldWrapped
.
Code that would have previously looked like:
wrappedWriter := common.NewResponseWriter(w)
handler.ServeHTTP(wrappedWriter, r)
now looks like:
wrappedWriter := common.NewResponseWriter(w)
handler.ServeHTTP(wrappedWriter.Wrapped, r)
- Allow override of MaxConcurrentBatches, MaxBatchSize, and PendingWorkCapacity in
beeline.Config
- Sets default value for MaxConcurrentBatches to 20 (from 80), and PendingWorkCapacity to 1000 (from 10000).
- rollup fields were not getting the rolled up values added to the root span
- sql and sqlx wrappers get both the DB call being made (eg Select) as well as the name of the function making the call (eg FetchThingsByID)
- fix version number inconsistency with a patch bump
- fix propagation bug when an incoming request has a serialized beeline trace header
This is the second major release of the beeline. It changes the model from "one current span" to a to a doubly-linked tree of events (now dubbed "spans") representing a trace.
- introduces the concept of a span
- adds functions to create new spans in a trace and add fields to specific spans
- adds the ability to create and accept a serialized chunk of data from an upstream service to connect in-process traces in a distributed infrastructure into one large trace.
- adds trace level fields that get copied to every downstream span
- adds rollup fields that sum their values and push them in to the root span
- adds a pre-send hook to modify spans before sending them to Honeycomb
- adds trace-aware deterministic sampling as the default
- adds a sampler hook to manually manage sampling if necessary
- removed
ContextEvent
andContextWithEvent
functions; replaced by spans
- augment the net/http wrapper to wrap
RoundTripper
s and handle outbound HTTP calls - adding a wrapper for the
pop
package
- add new sqlx functions to add context to transactions and rollbacks
- add HTTP Headers X-Forwarded-For and X-Forwarded-Proto to events if they exist
- use the passed in context in sqlx instead of creating a background context
- Use the right Host header for incoming HTTP requests
- Recognize struct HTTP handlers and add their name
- Fix nil route bug
Initial Release