All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
This project adheres to Semantic Versioning.
1.12.0 - 2021-09-20
- Add
http.RTWithNoDebugStack
to thenet/http.RoundTripper
instrumentation. (#177)
1.11.0 - 2021-09-08
- Fix Confluent Kafka Client instrumentation module path. (#163)
- Bump github.com/tinylib/msgp from 1.1.5 to 1.1.6. (#153)
- Fix panic when context contains noop opentracing span. (#173)
1.10.0 - 2021-06-30
- Add
redigo.WithSpanOptions
to thegithub.aaakk.us.kg/gomodule/redigo
instrumentation. (#157)
1.9.3 - 2021-06-15
- Add leading zeros to the B3 propagation
x-b3-traceid
andx-b3-spanid
headers so that they are always 16 characters long. (#149)
1.9.2 - 2021-04-19
- Fix deadlock and race condition in sarama instrumentation. (#128)
1.9.1 - 2021-04-15
- Sarama instrumentation now adds
message_bus.destination
attribute. (#124)
1.9.0 - 2021-04-14
- Redigo instrumentation now adds
span.kind
anddb.type
attributes. (#121) - Sarama instrumentation now supports a
WithPeerServiceName
option. (#119) - Zipkin translator now correctly maps
consumer
andproducer
span kind values. (#119)
ext.SpanTypeMessageConsumer
andext.SpanTypeMessageProducer
now evaluate toconsumer
andproducer
respectively instead ofqueue
. (#119)- Sarama instrumentation requires Kafka version 0.11.0 or newer to work correctly. (#120)
- Sarama instrumentation correctly identifies spans. (#120)
1.8.0 - 2021-04-13
- Rename
SIGNALFX_SERVER_TIMING_CONTEXT
environmental variable toSIGNALFX_TRACE_RESPONSE_HEADER_ENABLED
and enable it by default. (#96) (#117)
1.7.0 - 2021-03-25
- Migrate from dep to Go Modules. (#67)
- Instrument
github.com/Shopify/sarama
instead of deprecatedgopkg.in/Shopify/sarama.v1
. (#67)
1.6.2 - 2021-03-12
- Fix MongoDB instrumentation. (#65)
1.6.1 - 2020-12-14
- Add
db.type
tag to Redis instrumentations. (#53)
1.6.0 - 2020-09-29
- go-redis instrumentation will try to substitute any values from commands with
?
. (#50)
1.5.0 - 2020-09-17
- Add
TraceIDHex
andSpanIDHex
functions that return IDs fromddtrace.SpanContext
. (#48)
1.4.2 - 2020-09-14
- Fix grpc instrumentation to correctly add span.kind tags. (#47)
1.4.1 - 2020-09-02
- Fix version number returned in code.
1.4.0 - 2020-08-27
Limiting the size of span tags/attributesThis can be done in the following ways:
- Set SIGNALFX_RECORDED_VALUE_MAX_LENGTH environment variable to a number to apply the setting globally.
- Pass tracing.WithRecordedValueMaxLength(number) option to tracing.Start() function.
- Pass tracer.WithRecordedValueMaxLength(number) option to tracer.StartSpan() function.
- Add support for SIGNALFX_RECORDED_VALUE_MAX_LENGTH. (#42)
1.3.1 - 2020-08-12
- Ensure that redundant span.kind tag is not set for Zipkin and that its kind field is always uppercase. (#41)
1.3.0 - 2020-08-05
In order to support echo/v4, the instrumentation needed to import echo from the updated v4 path and also provide an alternate import path for itself.
When using echo/v4, users must import the instrumentation middleware from:
"github.com/signalfx/signalfx-go-tracing/contrib/labstack/echo.v4"
instead of:
"github.com/signalfx/signalfx-go-tracing/contrib/labstack/echo"
- Add support for echo/v4. (#40)
1.2.3 - 2020-07-31
- Fix version number returned in code.
1.2.2 - 2020-07-31
- Redis instrumentation correctly adds span.kind=client tag to database operation spans. (#39)
1.2.1 - 2020-07-30
- If
SIGNALFX_SERVER_TIMING_CONTEXT
environemntal variable istrue
, pass trace context in traceparent form over a Server-Timing header. (#34)
- Fix an issue with opentracing-go 1.2 where span.Tracer would not return a compatible opentracing instance. (#37)
1.2.0 - 2020-05-20
- Add
signalfx.tracing.library
andsignalfx.tracing.version
tags to local root span for each trace. (#33)
- Change default service name to unnamed-go-service. (#33)
1.1.0 - 2020-04-21
Errors will now be recorded in spans as attributes. The following attributes will be used to represent errors:
error
: A boolean field set to true in case an operation resulted in an error.sfx.error.message
: The human readable error message contained by the error.sfx.error.object
: The type of an error e.g., "echo.HTTPError".sfx.error.kind
: Short form representation ofsfx.error.object
sfx.error.stack
: A stack trace in platform-conventional format; may or may not pertain to an error. E.g.,
goroutine 43 [running]:
runtime/debug.Stack(0x1502340, 0xc000183380, 0x1590fac)
/usr/local/go/src/runtime/debug/stack.go:24 +0x9d
github.com/signalfx/signalfx-go-tracing/ddtrace/tracer.(*span).setTagError(0xc0001d4180, 0x15072a0, 0xc000183410, 0xc0001e3af8)
/Users/olone/Projects/splunk/signalfx-go-tracing/ddtrace/tracer/span.go:184 +0x3a9
github.com/signalfx/signalfx-go-tracing/ddtrace/tracer.(*span).SetTag(0xc0001d4180, 0x158c4d4, 0x5, 0x15072a0, 0xc000183410, 0x0, 0x0)
/Users/olone/Projects/splunk/signalfx-go-tracing/ddtrace/tracer/span.go:136 +0x51c
github.com/signalfx/signalfx-go-tracing/contrib/labstack/echo.Middleware.func1.1(0x165a840, 0xc0001be380, 0x0, 0x0)
/Users/olone/Projects/splunk/signalfx-go-tracing/contrib/labstack/echo/echotrace.go:50 +0x603
github.com/labstack/echo.(*Echo).ServeHTTP(0xc0001ce1e0, 0x164c620, 0xc00018a400, 0xc00019e700)
/Users/olone/go/pkg/mod/github.com/labstack/[email protected]+incompatible/echo.go:593 +0x222
github.com/signalfx/signalfx-go-tracing/contrib/labstack/echo.TestEchoTracer500Zipkin(0xc0001ae900)
/Users/olone/Projects/splunk/signalfx-go-tracing/contrib/labstack/echo/echotrace_test.go:224 +0x3da
testing.tRunner(0xc0001ae900, 0x15ae210)
/usr/local/go/src/testing/testing.go:991 +0xdc
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:1042 +0x357
- Use SignalFx semantic conventions to represent errors in spans as attributes. (#29)
1.0.2 - 2020-04-02
- Set B3 propagation as default http codec. (#28)
1.0.1 - 2019-10-21
- Add SpanKind for gRPC Server and Client. (#25)