Skip to content

Releases: DataDog/dd-trace-go

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)

0.3.0

11 Apr 09:24
Compare
Choose a tag to compare

Major changes

  • use a seeded / thread-safe random number generator for Span ids. This number generator is used internally to avoid deterministic ids after each restart (#48)

Bugfixes

  • fixed race condition on Enabled attribute (#43)

Improvements

  • Add http.url to Mux integration (#40)
  • Allow custom SpansBuffer max size through SetSpansBufferSize exported function (#37)
  • Update documentation (#35 -- docs)

Breaking changes

  • Default port 7777 has been replaced with the new 8126 available from Datadog Agent 5.11.0 and above (#42)

Read the full changeset.

0.2.0

09 Jan 08:41
Compare
Choose a tag to compare

Major changes

  • Add NewTransport to create a transport that sends traces to a specific
    host and port.
  • Add (*tracer.Tracer).SetServiceInfo to define services.
  • Define services for gin-gonic, gorilla and grpc integrations.
  • Update tracegrpc.UnaryServerInterceptor and tracegrpc.UnaryClientInterceptor to take both a tracer and a service name as arguments.
  • Populate the error.type and error.stack tags for error spans.
  • Mark request spans as errors for 5xx status codes with gorilla/mux.

Bugfixing

  • Fix context key to make it compatible with gin-gonic contexts.

Read the full changeset

0.1.0

12 Dec 20:10
Compare
Choose a tag to compare

Major changes

  • providing support to msgpack encoding format
  • using MsgpackEncoder as a default encoder to serialize the payload sent to the trace agent
  • if an old version of the agent is used, the encoder is switched at runtime downgrading the API and the Encoder to the previous stable versions (JSONEncoder and v0.2 at the time of writing).

Bugfixing

  • Update gRPC generated code to latest protobuf version

Read the full changeset