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

config: add support for Insecure #6658

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mattsains
Copy link
Contributor

@mattsains mattsains commented Jan 21, 2025

@mattsains mattsains requested review from pellared and a team as code owners January 21, 2025 20:24
@github-actions github-actions bot requested a review from codeboten January 21, 2025 20:25
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.0%. Comparing base (130846a) to head (b255363).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #6658     +/-   ##
=======================================
- Coverage   73.0%   73.0%   -0.1%     
=======================================
  Files        189     189             
  Lines      15773   15773             
=======================================
- Hits       11525   11519      -6     
- Misses      3916    3920      +4     
- Partials     332     334      +2     
Files with missing lines Coverage Δ
config/v0.3.0/log.go 95.3% <100.0%> (ø)
config/v0.3.0/metric.go 89.0% <100.0%> (ø)
config/v0.3.0/trace.go 97.3% <100.0%> (ø)

... and 1 file with indirect coverage changes

@@ -183,7 +183,7 @@ func otlpGRPCLogExporter(ctx context.Context, otlpConfig *OTLP) (sdklog.Exporter
} else {
opts = append(opts, otlploggrpc.WithEndpoint(*otlpConfig.Endpoint))
}
if u.Scheme == "http" {
if u.Scheme == "http" || (u.Scheme != "https" && otlpConfig.Insecure != nil && *otlpConfig.Insecure) {
Copy link
Member

Choose a reason for hiding this comment

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

Should we add tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would like to and spent some time on it already, but these options get double wrapped in structs with only private members so I was at a loss as to how to inspect the output of this method. Happy to take suggestions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dmathieu did you have any suggestions here?

@pellared
Copy link
Member

@codeboten, PTAL as a codeowner

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.

otlpHTTPLogExporter, otlpGRPCLogExporter, etc do not support fields like OTLP.Certificate
3 participants