Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instrumentation for github.com/gocql/gocql #137

Merged
merged 25 commits into from
Jul 30, 2020

Conversation

reggiemcdonald
Copy link
Contributor

Addresses #91

This PR adds an integration for the Cassandra DB golang client, gocql.

Since the previous implementation of this integration was created, the gocql community added Observer hooks that can be used to collect metrics for queries, batch queries, and connection attempts. You can see the one for queries here. This integration uses these observers, which differs from the prior art, which created a wrapper around the gocql.Query.

Any feedback is appreciated!

Copy link
Contributor

@MrAlias MrAlias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overall approach looks good. I have some questions/comments about implementation.

Thanks for working on this 😄

instrumentation/github.com/gocql/gocql/README.md Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/README.md Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/cass.go Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/cass.go Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/cass.go Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/instrument.go Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/instrument.go Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/instrument.go Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/observer.go Outdated Show resolved Hide resolved
Copy link
Contributor

@MrAlias MrAlias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with @Aneurysm9 on the tracer/meter naming, but otherwise looks good.

The included comment is more for historical purposes when it can be addressed.

Thanks for the contribution!

instrumentation/github.com/gocql/gocql/README.md Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/README.md Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/config.go Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/config.go Outdated Show resolved Hide resolved
instrumentation/github.com/gocql/gocql/instrument.go Outdated Show resolved Hide resolved
@MrAlias MrAlias merged commit 7066c08 into open-telemetry:master Jul 30, 2020
@MrAlias MrAlias mentioned this pull request Jul 31, 2020
plantfansam referenced this pull request in plantfansam/opentelemetry-go-contrib Mar 18, 2022
* Fix compilation with Golang 1.13

* run go mod tidy again
@pellared pellared added this to the untracked milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants