-
Notifications
You must be signed in to change notification settings - Fork 1
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
Adding UncheckedIOException to onFailure handler #16
Adding UncheckedIOException to onFailure handler #16
Conversation
8c3e8f7
to
3f7233a
Compare
exporters/common/src/main/java/io/opentelemetry/exporter/internal/http/HttpExporter.java
Outdated
Show resolved
Hide resolved
.../okhttp/src/main/java/io/opentelemetry/exporter/sender/okhttp/internal/OkHttpHttpSender.java
Outdated
Show resolved
Hide resolved
bbf0c5b
to
83637b5
Compare
83637b5
to
0accdf3
Compare
exporters/common/src/main/java/io/opentelemetry/exporter/internal/http/HttpExporter.java
Outdated
Show resolved
Hide resolved
CompletableResultCode result = exporter.export(new NoOpMarshaler(), 0); | ||
result.join(1, TimeUnit.MINUTES); | ||
exporter.shutdown().join(1, TimeUnit.MINUTES); | ||
Assertions.assertThat(result.isSuccess()).isTrue(); |
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.
Not sure what this test has to do with the code we've been talking about.
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 intend to cover Lines 220 and 221 of JdkHttpSender. I can't override the method writeJsonTo on the NoOpMarshaler so I'm using a succes flow instead adding .exportAsJson() in the builder.
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.
Just removed the authentication and shutdown part to focus more on the regular success flow
…nal/http/HttpExporter.java Co-authored-by: jack-berg <[email protected]>
9c2fc38
to
4600eea
Compare
No description provided.