-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Add http/protobuf support for Coralogix exporter #43219
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
base: main
Are you sure you want to change the base?
Conversation
8917d5b
to
b1a405e
Compare
Signed-off-by: Israel Blancas <[email protected]>
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.
One more comment regarding the default value for the protocol configuration and config validation.
# (Optional) Protocol to use for communication: "grpc" (default) or "http" | ||
protocol: "grpc" |
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.
You mention here that this is optional and there isn't a single test there protocol
is not provided. I believe this will now fail the validation code here:
if c.Protocol != grpcProtocol && c.Protocol != httpProtocol {
return fmt.Errorf("protocol must be %s or %s", grpcProtocol, httpProtocol)
}
Somewhere in the code (I guess inside the config validation function) we will need something like:
if c.Protocol == "" {
c.Protocol = grpcProtocol
}
Can you add a test where the config has no explicit protocol to confirm it behaves like the README states?
Description
Link to tracking issue
Fixes #43216
Testing
Tested with:
And
Also did some tests with proxy.
Documentation
README.md
.