Releases: opencensus-integrations/ocsql
Release v0.1.7 (RonaImposed)
This release features the following changes
- Addition of RegisterWithSource to allow passing in dataSourceName into sql.Open as pe PR #42 by @veera83372
- Addition of an implementation of driver.NamedValueChecker as per PR #44 by @micanzhang and PR #45 by fixed further by @neilaram1
Thank you to all the contributors, and users!
Release v0.1.6 (Roaring 20s)
This release features some bug fixes and new features:
- A new trace option to record the database instance name, called
WithInstanceName
.
This feature is useful to differentiate between different database names. It was requested by
@vearutop in issue #33 and then resolved by PR #34
It can be used when creating a driver like this
driverName, err = ocsql.Register("mysql", ocsql.WithAllTraceOptions(), ocsql.WithInstanceName("prod8"))
- A bug fix to correctly catch and record errors produced, and propagate them when tracking latency.
The cause of the issue was in our defers we were directly getting a closure and passing err directly into it
which would use the earliest value of the named error valueerr
e.g.
func foo() (err error) {
defer tracker(...)(err)
....
but really what we wanted was
func foo() (err error) {
onDeferFn := tracker(...)
defer func() {
onDeferFn(err)
}()
....
This bug was noticed and fixed by @otternq in PR #43.
Thank you everyone for all the changes, bug reports and fixes and for the reviews!
Release v0.1.5 (cheerful decade)
This release v0.1.5 features:
-
The addition of an option
DisableErrSkip
to prevent database/sql/driver.ErrSkip errors from being added as erroring statuses on spans. This work was done by @a8m in PR #37 and the prior behavior that was removed can be seen in @a8m's screenshot
which can now be turned off programmatically -
The addition of a WithSampler option which sets the sampler that will be passed into trace.StartSpan as per opencensus-go/trace.WithSampler. This work ws done by @alexsn in PR #40
Enjoy, happy holidays and cheers to the next decade! Thank you for using OpenCensus and these integrations.
Release v0.1.4
This release features:
- Properly propagating TraceOptions to the transaction decorator
- Ensuring that trace attributes are added before a span.End defer call as per PR #34
- A WrapConnector method to explicitly wrap existing driver connectors as per PR #34 (comment) which was requested in #30
- An updated README to documenting available stats and how to use RecordStats
Release v0.1.3
This release adds stats to ocsql.
Release v0.1.2
This release improves ocsql by:
- supporting all additional driver.Rows interfaces. Thanks @hugorut
- adding SpanKind = client to ocsql spans. Thanks @yancl
- fixing doc typos. Thanks @sagikazarmark
- adding ability to directly wrap a driver.Conn. Thanks for the suggestion @zombiezen.
release v0.1.1
Fixes some open issues with optional interfaces being incorrectly hidden.
initial release of ocsql
initial release of ocsql