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
tracing: make otel dependency optional for rego+topdown #4127
tracing: make otel dependency optional for rego+topdown #4127
Conversation
d215fb0
to
5eda605
Compare
This follows the same approach as the wasm feature: by default, importers of github.com/open-policy-agent/opa/rego github.com/open-policy-agent/opa/topdown will not get a transitive dependency on the otel libraries. In terms of functionality, nothing changes for the server and runtime. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
5eda605
to
1e8b983
Compare
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
1e8b983
to
e186d6e
Compare
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
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.
LGTM. Must be a law of software development that as a project ages it eventually imports every logging library in existence.
tracing = ht | ||
} | ||
|
||
func NewTransport(tr http.RoundTripper, opts Options) http.RoundTripper { |
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.
nit: missing docstrings on these exported functions. I'm surprised that golangci isn't catching this.
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.
Hmm maybe it picks up that it's used by implementing an interface? Interface implementations might not need their own comments...? 🤔
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
…agent#4127) This follows the same approach as the wasm feature: by default, importers of github.com/open-policy-agent/opa/rego github.com/open-policy-agent/opa/topdown will not get a transitive dependency on the otel libraries. In terms of functionality, nothing changes for the server and runtime. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
This follows the same approach as the wasm feature: by default, importers
of
will not get a transitive dependency on the otel libraries.
In terms of functionality, nothing changes for the server and runtime.
Follow-up to #4029, discussed on that PR.