-
Notifications
You must be signed in to change notification settings - Fork 923
Simple OTLP HTTP authentication - otel internal api #4630
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4630 +/- ##
============================================
+ Coverage 90.05% 90.11% +0.05%
- Complexity 5066 5073 +7
============================================
Files 581 582 +1
Lines 15618 15641 +23
Branches 1497 1500 +3
============================================
+ Hits 14065 14095 +30
+ Misses 1098 1092 -6
+ Partials 455 454 -1
Continue to review full report at Codecov.
|
| (Route route, Response rspns) -> { | ||
| Request.Builder requestBuilder = rspns.request().newBuilder(); | ||
| finalAuthenticator.getHeaders( | ||
| ah -> { |
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 know this API. What's the type of ah? Can we make the variable name more expressive? Thanks!
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.
expanded to authHeaders
jack-berg
left a comment
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.
Bunch of small comments. Thanks!
...lp/common/src/main/java/io/opentelemetry/exporter/internal/okhttp/OkHttpExporterBuilder.java
Outdated
Show resolved
Hide resolved
...lp/common/src/main/java/io/opentelemetry/exporter/internal/okhttp/OkHttpExporterBuilder.java
Outdated
Show resolved
Hide resolved
...lp/common/src/main/java/io/opentelemetry/exporter/internal/okhttp/OkHttpExporterBuilder.java
Outdated
Show resolved
Hide resolved
...ers/otlp/common/src/test/java/io/opentelemetry/exporter/internal/auth/AuthenticatorTest.java
Outdated
Show resolved
Hide resolved
...ers/otlp/common/src/test/java/io/opentelemetry/exporter/internal/auth/AuthenticatorTest.java
Outdated
Show resolved
Hide resolved
exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/auth/Authenticator.java
Outdated
Show resolved
Hide resolved
exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/auth/Authenticator.java
Outdated
Show resolved
Hide resolved
exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/auth/Authenticator.java
Outdated
Show resolved
Hide resolved
exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/auth/Authenticator.java
Outdated
Show resolved
Hide resolved
exporters/otlp/common/src/main/java/io/opentelemetry/exporter/internal/auth/Authenticator.java
Outdated
Show resolved
Hide resolved
…internal/auth/Authenticator.java Co-authored-by: jack-berg <[email protected]>
…internal/auth/Authenticator.java Co-authored-by: jack-berg <[email protected]>
…internal/auth/Authenticator.java Co-authored-by: jack-berg <[email protected]>
…internal/auth/Authenticator.java Co-authored-by: jack-berg <[email protected]>
…internal/okhttp/OkHttpExporterBuilder.java Co-authored-by: jack-berg <[email protected]>
jack-berg
left a comment
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.
Interested if the contract needs to be void getHeaders(Consumer<Map<String, String>>) or if Map<String, String> getHeaders() would suffice. But looks good otherwise.
Thanks!
jkwatson
left a comment
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 know enough to know if this is sufficient for all the use-cases needed, but as long as it's just internal for now, 👍🏽
Support simple authentication protocols on OTLP HTTP exporters as discussed in, #4590