Skip to content

Releases: DataDog/dd-trace-go

1.2.1

24 Aug 09:49
90c48ee
Compare
Choose a tag to compare

New features

  • gorilla/mux: allow setting custom span options (#320)

1.2.0

23 Aug 10:57
cea9c1d
Compare
Choose a tag to compare

New features

  • New integration: globalsign/mgo (#308)
  • New integration: k8s.io/client-go (#298)
  • New integration: bradfitz/gomemcache (#291)
  • Add tracing for http.RoundTripper (#299)

Bug fixes

  • Add support for newer go-redis/redis versions (#318)
  • Add some standard tags for databases into the ext package (#300)
  • Always reset payload after transport (#319)

To view all changes take a look at new commits or at the 1.2.0 milestone.

1.1.1

06 Aug 18:13
2ef3281
Compare
Choose a tag to compare

Bug Fixes:

  • fix race condition in google.golang.org/grpc integration (#302)

Read the full changeset

1.1.0

06 Aug 08:34
888c7c4
Compare
Choose a tag to compare

New features

  • New integration: streaming interceptors for google.golang.org/grpc (#277)
  • New integration: graph-gophers/graphql-go (#287)
  • New integration: aws/aws-sdk-go (#285)
  • Added a constant for setting the environment tag (#257)

Improvements

  • Improved public and in-code documentation (#251, #252, #253, #271, #289)
  • Support all http interfaces when wrapping a response writer (#278)
  • gorilla/mux now adds mux.host tag to specify route hosts (#255)
  • Resolve agent address correctly when specifying only host (#258)
  • Improve examples (#263)
  • Always stop the internal tracer (flushing any pending) when calling Stop (#264)
  • Automatically trace propagated requests with gin-gonic/gin (#279) - thanks @samsaggace!
  • Changed span types (SQL, Cassandra, HTTP, Web, etc) to correctly reflect our pipeline's types (#281, #282, #288)

To view all changes take a look at new commits or at the 1.1.0 milestone.

1.0.0

06 Jun 15:16
d052956
Compare
Choose a tag to compare

Summary

The new version of the Datadog tracer provides not only an overhauled core which comes with considerable performance improvements, stability and bug fixes, but also a completely new and improved API. This release marks the beginning of our promise to abide by the standards of semantic versioning within the project. It is the result of continuous feedback from the community as well as our extensive internal usage at Datadog in production.

A migration guide has been provided to help users running version 0.x with upgrading. It can be found here.

The full list of changes can be viewed in the 1.0.0 milestone.

Further reading

0.6.1

19 Jan 15:40
Compare
Choose a tag to compare

New features

  • contrib: add support for gRPC v1.2 (#134)
  • tracer: increase span buffer from 10k to 100k (#136)
  • tracer: dual sampling support, make sure priorities -1 and 2 are handled (#137)
  • opentracing: set Span error when adding error tags (#154)
  • opentracing: allow customizing propagator headers (#155, docs)

Bugfixes

  • tracer: fix encoder race conditions by removing the EncoderPool (#116)
  • tracer: SetTag convert value to string instead of expected a string (#135 -- thanks @chibimi)
  • opentracing: use base10 for traceID and parentID (#140 -- thanks @hamiltop)
  • opentracing: sample propagated spans after setting traceID (#143 -- @shrayolacrayon)
  • opentracing: set tracer in span creation (#149, #150)

Read the full changeset.

0.6.0

06 Dec 10:00
66d30ec
Compare
Choose a tag to compare

OpenTracing API

Datadog APM Go Client 0.6.0 is the first version that implements an OpenTracing API. The library uses a compatibility layer on top of the previous datadog.Tracer implementation, so we're still backward compatible with the previous API. It's highly suggested to start using the new API, since the previous tracer has been planned to be deprecated and removed in the next releases.

Backward compatibility

If you're using the legacy datadog.Tracer, no actions are needed and you can safely jump to this release. What is not supported, is using both APIs in the same project. When an OpenTracing Tracer is initialized, the datadog.DefaultTracer is replaced so integrations can be used as usual with the new API.

To start using the new API, you can take a look at the following references:

Read the full changeset

0.5.1

22 Sep 16:01
Compare
Choose a tag to compare

Bugfixes

  • [sql] remove tlsConfigRegister in MySQL DSN parser (#93 -- thanks @DanielNi!)
  • [redigo] pass along the options argument in TracedDial (#109)
  • [core] use a different Buffer between encoding and flushing to avoid race conditions (#112)

Breaking change

  • [core] fix race condition while accessing DebugLoggingEnabled attribute (#110). The attribute is not exported anymore, so you need to use the API setter/getter:
import 'github.com/DataDog/dd-trace-go/tracer'

// Old API
// t := tracer.DefaultTracer
// t.DebugLoggingEnabled = true
// debugFlag := t.DebugLoggingEnabled

// New API
t := tracer.DefaultTracer
t.SetDebugLogging(true)
debugFlag := t.DebugLoggingEnabled()

Improvements

  • [core] add metadata about language as payload headers (#98)
  • [http] add net/http integration (#102 -- thanks @FreekingDean!)

Project refactoring

To simplify the usage and to make easy to write new and consistent contributions, we started a global refactoring of all contrib modules. This is not a breaking change:

  • improve consistency between contributions (#104)

Read the full changeset.

0.5.0

20 Jul 18:43
Compare
Choose a tag to compare

Core

  • add tracer.NewChildSpanFromContext() to create a new child span from a Context instance (#66)
  • the current process ID is added to root spans (#92)
  • you can now set multiple metas with span.SetMetas() (#88 -- thanks @jbonzo)
  • improved time precision for Windows builds; this change doesn't impact other systems (#80)

Integrations

  • this release introduces one new integration to generate spans from gocql (#73, docs).

Bugfixes

  • avoid sending partials and incomplete traces to the agent (#78, #77)
  • fix NewChildSpanFromContext(): create the span from the current tracer (#86 -- thanks @vbehar)

Improvements

  • [integration] redigo command strings are now complete (#80)
  • [integration] grpc, we now pass over the service name (#67)
  • [integration] elasticsearch, trace the client HTTPClient (#68)

Read the full changeset.

0.4.0

10 May 17:18
Compare
Choose a tag to compare

Core

  • you can now set tags at the tracer level like in python with tracer.SetMeta(key, value) (#56)

Integrations:
This release introduces four new integrations to generate spans from commonly used libraries. Look under https://godoc.org/github.com/DataDog/dd-trace-go/tracer#pkg-subdirectories for more details.

Bugfixes

  • Fix a bug which caused SpanFromContextDefault to panic (#54)

Improvements

  • Use of a single global random number generator, helpfull for generating Span IDs and Trace IDs (#54)
  • Add an X-Datadog-Trace-Count header to outbound payloads as a hint for pre-sampling (#61)