-
Notifications
You must be signed in to change notification settings - Fork 92
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
jakarta upgrade #687
jakarta upgrade #687
Conversation
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.
@smahieu87 Please fix minor comments. Once done, PR will be approved.
Self Note: Once Pull request will be approved then QA testing will be required to analyze the impact of opentracing span wrt opentelemetry span etc.
import network.oxalis.api.lang.OxalisLoadingException; | ||
import network.oxalis.commons.certvalidator.api.CrlFetcher; | ||
import network.oxalis.pkix.ocsp.api.OcspFetcher; |
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.
Do Not unnecessarily rearrange code i.e. do Not remove and add same dependencies e.g.
import network.oxalis.commons.certvalidator.api.CrlFetcher;
import network.oxalis.pkix.ocsp.api.OcspFetcher;
if (span.getSpan() != null) | ||
basicHttpContext.setAttribute(Constants.PARENT_CONTEXT, span.getSpan().context()); | ||
if (span != null) | ||
basicHttpContext.setAttribute("OxalisCrlFetcher.parentSpanContext", span.getSpanContext()); |
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.
Better option is to replace below statement:
basicHttpContext.setAttribute("OxalisCrlFetcher.parentSpanContext", span.getSpanContext());
with
basicHttpContext.setAttribute(OxalisCrlFetcher.class.getName() + ".parentSpanContext", span.getSpanContext());
if (span.getSpan() != null) | ||
basicHttpContext.setAttribute(Constants.PARENT_CONTEXT, span.getSpan().context()); | ||
if (span != null) | ||
basicHttpContext.setAttribute("OxalisOcspFetcher.parentSpanContext", span.getSpanContext()); |
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.
Better option is to replace below statement:
basicHttpContext.setAttribute("OxalisOcspFetcher.parentSpanContext", span.getSpanContext());
with
basicHttpContext.setAttribute(OxalisOcspFetcher.class.getName() + ".parentSpanContext", span.getSpanContext());
try (CloseableHttpClient httpClient = httpClientProvider.get()) { | ||
BasicHttpContext basicHttpContext = new BasicHttpContext(); | ||
basicHttpContext.setAttribute(Constants.PARENT_CONTEXT, span.context()); | ||
basicHttpContext.setAttribute("spanContext", span.getSpanContext()); |
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.
Better option is to replace below statement:
basicHttpContext.setAttribute("spanContext", span.getSpanContext());
with
basicHttpContext.setAttribute(As2MessageSender.class.getName() + ".parentSpanContext", span.getSpanContext());
import network.oxalis.api.outbound.TransmissionResponse; | ||
import network.oxalis.api.outbound.TransmissionService; | ||
import network.oxalis.api.outbound.Transmitter; | ||
import network.oxalis.api.tag.Tag; |
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.
Why unnecessary formatting (removing and adding import network.oxalis.api.tag.Tag) ?
import io.opentracing.Tracer; | ||
import io.opentelemetry.api.trace.Span; | ||
import io.opentelemetry.api.trace.Tracer; | ||
import jakarta.inject.Inject; |
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 replace, avoid unnecessary addition and removal
pom.xml
Outdated
<httpclient.version>4.5.13</httpclient.version> | ||
<commons-codec.version>1.15</commons-codec.version> | ||
<jetty.version>10.0.16</jetty.version> | ||
<jetty.version>11.0.24</jetty.version> |
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.
This is Not directly linked with PR.
Merging pull request "as-is" as no action was taken. There will be build failure because of this pull request which I will fix with another commit. |
Pull Request Description
Please include a summary of the change request or bug which is supposed to be fixed as part of this pull request
Type of Pull Request
Type of Change
Pull Request Checklist:
mvn clean install
before commit and all tests run successfullymaster
branch