Skip to content

Releases: DataDog/dd-trace-go

1.29.0

11 Mar 15:48
a0e288c
Compare
Choose a tag to compare

This release contains a bunch of new features and fixes. Thank you to everyone who helped us by contributing both new features and bug fixes ❤️

Features

  • ddtracer/tracer: add support for DD_TRACE_SOURCE_HOSTNAME (#839)
  • all: improve debug logging (#816)
  • profiler: add options for block and mutex rates (#814)
  • contrib/go-redis/redis.v8: add support for WrapClient (#808) (Thanks @seancaffery)
  • contrib/jinzhu/gorm: add WithErrorCheck option (#806) (Thanks @moonsub-kim)
  • profiler: add support for v3 upload and metrics (#781)
  • contrib/gorm.io/gorm.v1: add support for gorm@v1 (#759)
  • ddtrace/tracer: fmt.Stringer in span.SetTag (#799) (Thanks @pierrre)
  • ddtracer/tracer: ensure tag keys are unique across metrics and meta tags (#800)
  • contrib/gorilla/mux: add option for skipping certain requests (#789) (Thanks @stroem)
  • contrib/gofiber/fiber.v2: add integration for Fiber v2 framework (#786) (Thanks @andrei-dascalu)
  • {profiler,ddtrace/tracer}: add UDS client options (#788)

Fixes

  • ddtracer/tracer: fix an issue with illegal characters in Lambda mode (#832)
  • profiler: fix goroutineswait profile frame order (#850)
  • contrib.confluent-kafka-go: use github.com import path (#847)
  • ddtrace/tracer: updated DD_TAGS parsing to support space separation (#837)
  • ddtrace/tracer: B3 headers are now encoded as exactly 16 character long (#817)
  • profiler: Start() doesn't unlock mutex on error (#819)
  • ddtrace/tracer: improve "Tracing Without Limits" sampling rates (#812)
  • contrib/aws/aws-sdk-go: open only a single span for retryable operations (#777) (Thanks @marcind)

Upgrades

  • profiler: increase DefaultBlockRate from 100 to 10000 (#836)

To view all changes check out new commits and the 1.29.0 milestone.

1.28.0

22 Dec 16:57
45c7d74
Compare
Choose a tag to compare

This release has a lot of little features and new integrations for go-pg and go-redis v8. It also includes a number of bug fixes and other minor improvements. 🚀

Thanks again to all contributors!

Features

  • contrib/go-redis/redis.v8: support go-redis.v8 (#727) (Thanks @sfroment)
  • contrib/jmoiron/sqlx: allow adding sqltrace.Option to Open (#762)
  • contrib/go-pg/pg.v10: add support for github.com/go-pg/pg/v10 (#686) (Thanks @patriczek)
  • ddtrace/tracer: add freebsd osinfo support (#766) (Thanks @vanillahsu)
  • contrib/cloud.google.com/go/pubsub.v1: Add WithServiceName option (#757) (Thanks @mickeyreiss)
  • ddtrace/tracer: Improve agent performance by marking top level spans (#782, #784)
  • contrib/gin-gonic/gin: support globalconfig.ServiceName() (#776) (Thanks @marcind)
  • contrib/go-chi/chi: Added option to set custom error status check (#773) (Thanks @Hunrik)

Fixes

  • contrib/go-chi/chi: Handle 0 status code correctly (#740) (Thanks @adw1n)
  • Use existing const in osinfo_default (#754) (Thanks @aeneasr)
  • contrib/Shopify/sarama: use sarama.MinVersion in tests. (#761)
  • profiler: set profiler upload timeout to 10s (#768)
  • ddtrace/tracer: StartSpanFromContext should work nil ctx on Go 1.15 (#749)
  • contrib/Shopify/sarama: Fix WrapAsyncProducer tracing support (#738) (Thanks @adw1n)
  • ddtrace/tracer: allow B3 trace IDs longer than 16 chars (#780) (Thanks @stroem)

To view all changes check out new commits and the 1.28.0 milestone.

1.27.1

15 Oct 08:43
41d4ee0
Compare
Choose a tag to compare

This release contains a patch which fixes the package build on operating systems outside Linux, Windows and macOS (#754).

1.27.0

02 Oct 18:18
ec56425
Compare
Choose a tag to compare

This release has a lot of new features including a new integration for cloud.google.com/go/pubsub, new configuration options, and support for tracing in AWS Lambda environments, as well as a number of fixes.
This release is especially notable for its high number of community contributions. Thanks again to all contributors. 🥇

Features

  • contrib/database/sql: add sql.query_type tag to sql spans (#707) (Thanks, @speza)
  • contrib/gopkg.in/jinzhu/gorm.v1: add support for new path (#713) (Thanks, @patronmike)
  • contrib/graph-gophers/graphql-go: Add WithOmitTrivial option. (#715) (Thanks, @cube2222)
  • contrib/jinzhu/gorm: Add custom tags. (#723) (Thanks, @cube2222)
  • profiler: add API key check at initialization of Profiler object (#718)
  • contrib: add support for cloud.google.com/go/pubsub (#721) (Thanks, @CAFxX)
  • ddtrace/tracer: add support for lambda tracing (#702, #742)
  • contrib/go-redis/redis: Enable tracing of Pipelined and TxPipelined (#724) (Thanks, @JDiPierro)
  • ddtrace/tracer: add WithDebugStack StartOption to configure stack traces. (#739)

Fixes

  • contrib/gomodule/redigo: Don't pass nil contexts around in withSpan (#711) (Thanks, @abustany)
  • ddtrace/tracer: improve agent connectivity check (#719)
  • contrib/garyburd/redigo: support go 1.15 (#731) (Thanks, @lbcjbb)
  • contrib/net/http: Add error to span in round tripper (#736) (Thanks, @marciorodrigues87)
  • contrib/twitchtv/twirp: Add explicit reference to the request span (#726) (Thanks, @mickeyreiss)

To view all changes check out new commits and the 1.27.0 milestone.

1.26.0

05 Aug 15:08
6d7c52c
Compare
Choose a tag to compare

This release is full of little improvements. 🥳
It incorporates additional support for configuration through environment variables, improved debugging capability through startup logging, support for labstack/echo@v4 as well as various other improvements.

Features

  • ddtrace/tracer: pick up env, version, service from DD_TAGS (#675)
  • contrib/net/http: add support for resource name customization with WrapClient (#690) (Thanks, @ichizero)
  • ddtrace/tracer: add startup logging (#685)
  • profiler: add goroutine profile type (#693)
  • all: add runtime-id to profiler and tracer global tags. (#692)
  • contrib/labstack/echo.v4: add support for echo@v4 (#698)
  • ddtrace/tracer: add support for various environment variables (#696, #691)

Fixes

  • contrib/go.mongodb.org/mongo-driver: set span type to "mongodb" (#683)

To view all changes check out new commits and the 1.26.0 milestone.

1.25.0

01 Jul 17:28
afab3a8
Compare
Choose a tag to compare

This release incorporates support for Go modules, additional options for the profiler, improved support for log injection, and various improvements and fixes for the contrib packages.

Upgrade Notes

  • Users of our contrib/shopify/sarama integration will need to change the import path from gopkg.in/Shopify/sarama.v1 to github.com/Shopify/sarama if they have not already done so. This is the result of github.com/Shopify/sarama using the github path as their canonical name in their go.mod file. Please see (IBM/sarama#1510) and (#672) for more details.

Features

  • profiler: add WithSite option and DD_SITE environment variable. (#644)
  • ddtrace/tracer: improve support for log injection (#657, #676)
  • contrib/internal/httputil: add HTTP host tag (#648)
  • contrib/google.golang.org/grpc: add metadata and request parameter tags for grpc calls (#647) (Thanks, @mingrammer)
  • contrib/jinzhu/gorm: add context getter for gorm.db (#667) (Thanks, @zhammer)
  • all: migrate to modules (#672)
  • ddtrace/tracer: send all global tags with metrics (#673) (Thanks, @DarrenTsung)
  • profiler: support agent-based deployments and have those as default. (#668)

Fixes

  • contrib/google.golang.org/grpc: fix a data race in config (#670) (Thanks, @ktr0731)

To view all changes check out new commits and the 1.25.0 milestone.

1.24.1

18 May 17:56
3999161
Compare
Choose a tag to compare

This release removes the WithValueTags option from the contrib/bradfitz/gomemcache integration.

WithValueTags could be problematic for multiple reasons such as producing unexpectedly large quantities of data, and possible security issues. We do not want to provide APIs with unexpected or potentially dangerous behavior.

1.24.0

15 May 15:46
28e8330
Compare
Choose a tag to compare

This release includes quite a few bug fixes and some small features, like profiler support for the DD_ENV, DD_VERSION, DD_SERVICE, and DD_TAGS environment variables.

Features

  • contrib/gocql/gocql: update with latest changes to WithContext (#624) (Thanks @ericjster)
  • profiler: add support for DD_ENV, DD_VERSION, DD_SERVICE, and DD_TAGS. (#632)
  • ddtrace/tracer: add WithHTTPClient and increase default HTTP timeout (#636)
  • contrib/bradfitz/gomemcache: trace item info for memcached operations (#642) (Thanks @mingrammer)

Fixes

  • contrib/internal/httputil: only set status once with WriteHeader (#629)
  • contrib/gocql/gocql: do not assume slice length (#641)
  • profiler: use correct URL for profiler backend (#645)
  • internal/globalconfig: fix wrong mutex acquired for SetServiceName (#659) (Thanks @vikpattabi)

To view all changes check out new commits and the 1.24.0 milestone.

1.23.3

15 May 13:20
Compare
Choose a tag to compare

This release contains a patch which acquires the correct mutex when setting the global service name. (#659) (Thanks @vikpattabi)

1.23.2

30 Apr 17:20
Compare
Choose a tag to compare

This release contains a patch which corrects the profiler backend URL (#645).