-
Notifications
You must be signed in to change notification settings - Fork 103
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
[OpenTelemetry] osquery-go trace instrumentation #1244
[OpenTelemetry] osquery-go trace instrumentation #1244
Conversation
…y-extension-client
…y-extension-client
…y-extension-client
…ry-trace-instrumentation
ee36a6d
to
6e65358
Compare
@@ -15,6 +15,7 @@ import ( | |||
"github.com/kolide/launcher/pkg/agent/types" | |||
"github.com/kolide/launcher/pkg/backoff" | |||
"github.com/kolide/launcher/pkg/osquery" | |||
osquerygotraces "github.com/osquery/osquery-go/traces" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing this, makes me think we should put SetTracerProvider
to being in the toplevel osquery-go
library. and leave traces
as effectively internal. But 🤷 maybe not important
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel strongly about it either way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's worth fixing now, but it feels wrong. traces
should really be an internal package, not part of the exposed API surface. But 🤷 we're most of the users, and I don't feel like we need to maintain some high standard of API consistency, so not worth it.
Pulls in changes from osquery/osquery-go#110 and adds a small amount of instrumentation to trace codepaths from osquery-go to launcher and vice versa.
Screenshots below --
Call => Distributed => GetQueries
Call => Config
Call => Table => exec