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

PAYARA-2547 Implement MicroProfile OpenTracing 1.0 #2776

Conversation

Pandrex247
Copy link
Member

Integrates OpenTracing into the Request Tracing Service.
Allows users to instrument their code for tracing with an annotation @Traced, and to inject a Tracer object to manually start and configure Spans themselves.

Currently not supported in this PR: Injection and Extraction (used for cross-process propagation).

Relies on payara/Payara_PatchedProjects#157, and payara/Payara_PatchedProjects#158

@Pandrex247 Pandrex247 changed the title Payara 2547 implement micro profile open tracing 1.0 PAYARA-2547 Implement MicroProfile OpenTracing 1.0 May 28, 2018
@Pandrex247 Pandrex247 added this to the Payara 5.182 milestone May 29, 2018
@Pandrex247
Copy link
Member Author

Jenkins test please

completed = false;
}

private void handleRequestEvent(RequestTraceSpan span) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could the first function call the overloaded one?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not straight-forwardly as you'd lose the precision of nanoTime converting to milliseconds.

@@ -171,16 +222,16 @@ public boolean isStarted() {

/**
* Returns a list of all the events that make up the trace.
* @return
* @return
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be corrected to be described in the @return?

* See {@link java.time.Instant#now()} for how this time is generated.
* @return
* @return
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as above

@Pandrex247
Copy link
Member Author

Jenkins test please

@payara-ci
Copy link
Contributor

Quick build and test failed!

…github.com:Pandrex247/Payara into PAYARA-2547-Implement-MicroProfile-OpenTracing-1.0
@Pandrex247
Copy link
Member Author

Jenkins test please

@payara-ci
Copy link
Contributor

Quick build and test passed!

@Pandrex247 Pandrex247 merged commit 7c35987 into payara:master May 29, 2018
@Pandrex247 Pandrex247 deleted the PAYARA-2547-Implement-MicroProfile-OpenTracing-1.0 branch August 29, 2018 15:00
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.

None yet

4 participants