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

Axis2 + Synapse Instrumentation #2350

Merged
merged 3 commits into from
Feb 24, 2021
Merged

Axis2 + Synapse Instrumentation #2350

merged 3 commits into from
Feb 24, 2021

Conversation

mcculls
Copy link
Contributor

@mcculls mcculls commented Jan 29, 2021

Adds support for tracing Apache/Axis2 SOAP messages, including across pause+resume where messages may be resumed on another thread. Also adds tracing of message requests coming through Apache/Synapse's "passthru" NHTTP transport. Other transports such as JMS are handled by existing integrations.

@mcculls mcculls force-pushed the mcculls/axis2 branch 4 times, most recently from 9d1b47f to 01d4621 Compare February 16, 2021 01:01
@mcculls mcculls added inst: others All other instrumentations and removed in-progress labels Feb 16, 2021
@mcculls mcculls changed the title Axis2 Instrumentation Axis2 + Synapse Instrumentation Feb 16, 2021
@mcculls mcculls force-pushed the mcculls/axis2 branch 9 times, most recently from 62b478e to 8b154e0 Compare February 19, 2021 17:50
@mcculls mcculls marked this pull request as ready for review February 19, 2021 18:27
@mcculls mcculls requested a review from a team as a code owner February 19, 2021 18:27
}

protected URIDataAdapter url(final SourceRequest request) {
return new DefaultURIDataAdapter(URI.create(request.getUri()));
Copy link
Member

Choose a reason for hiding this comment

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

Ideally there would be some way not to call URI.create

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 agree, especially since we only extract certain elements from the URI - I can look into that in a follow-up PR as that would help a lot of other instrumentations

Copy link
Member

Choose a reason for hiding this comment

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

Well, that wasn't my point, most instrumentations don't construct the URI, which is why this method now returns URIDataAdapter rather than URI, I was suggesting not to construct the URI here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, but some parsing will be needed and I can then re-use the same approach for the instrumentations that also create URIs because they only have an unparsed URI string (such as all the Netty instrumentations and the Finatra instrumentation)

Copy link
Member

Choose a reason for hiding this comment

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

That sounds excellent - particularly for Netty

@mcculls mcculls merged commit c542370 into master Feb 24, 2021
@mcculls mcculls deleted the mcculls/axis2 branch February 24, 2021 14:38
@github-actions github-actions bot added this to the 0.75.0 milestone Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inst: others All other instrumentations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants