spandex v2.2.0 Release Notes
Release Date: 2018-09-15 // over 5 years ago-
โ Added
- The
Spandex.Trace
struct now includespriority
andbaggage
fields, to support priority sampling of distributed traces and trace-level baggage, respectively. More details about these concepts can be found in the OpenTracing documentation. An updated version of thespandex_datadog
library will enable support for this feature in terms of theSpandex.Adapter
andSender
APIs.
๐ Changed
- It is no longer required that you specify the
env
option. If not specified, it will default tonil
. This is useful, for example, for allowing the Datadog trace collector configured default to be used. - The
Spandex.Adapter.distributed_context/2
callback now expects aSpanContext
struct to be returned, rather than aMap
. - Similarly, the
Spandex.continue_trace
function now expects aSpanContext
struct rather than a separatetrace_id
andspan_id
. - The sender API now calls the
send_trace
function, passing in aSpandex.Trace
struct, rather than passing a list ofSpandex.Span
structs. This means that you need to update thespandex_datadog
to a compatible version.
๐ Deprecated
- ๐
Spandex.continue_trace/4
is deprecated in favor ofSpandex.continue_trace/3
- ๐ Similarly,
Tracer.continue_trace/4
is deprecated in favor ofTracer.continue_trace/3
- The