HWKAPM-826 - RESTeasy rules for getting the URL template#763
Conversation
|
With this patch, the captured template for a RESTeasy endpoint is: And this is how it looks like: Should the protocol, hostname and port be removed? |
|
@jpkrohling I think its ok to have a REST easy specific solution for now - two points:
|
|
Agree on point 1, but not sure I follow your point 2. This is how the path is composed: Full URL: http://localhost:8080/jaxrs-uri-template-1.0-SNAPSHOT/app/download/file/aa/bb/cc Protocol, host and port will be stripped out. So, besides the protocol, host and port, should I also leave the context out? Like this, |
|
Not that is fine then. It was possibly just the example used which made it look more like a physical deployment location. |
|
@jpkrohling Looks good, just a couple of things:
|
|
I'm pushing two new commits: one with the move of the resteasy rule, and another with the Arquillian changes. The second is not finished yet, as it depends on having access to the span from within the REST endpoint. If it's not possible to get it there, I will need to rewrite the test to get the required data from somewhere else. Any ideas on that? |
|
@jpkrohling Was thinking that an additional 'test' rule could be added to get the template and add it to the request attributes, but unfortunately the Span interface does not provide access to the tags - only operations to set them. The other possibility would be to query the reported trace data and check the properties reported against the relevant node/span? |
|
@jpkrohling This may be the best general approach for testing rule - by verifying the trace data they produce? Its what the current agent rule tests do. |
| <goal>integration-test</goal> | ||
| <goal>verify</goal> | ||
| </goals> | ||
| <configuration> |
There was a problem hiding this comment.
The javaagent command line options would also need to be provided to trigger the rules in the wildfly server.
015d69f to
8398c2d
Compare
8398c2d to
8e077f3
Compare
|
Created https://issues.jboss.org/browse/HWKAPM-853 to implement arquillian tests for OT agent rules that require a server to be launched. |
|
@jpkrohling Thanks! |


No description provided.