opentracing-contrib / java-jaxrs

OpenTracing Java JAX-RS instrumentation
Apache License 2.0
37 stars 33 forks source link

Incorrect operation name in WildcardOperationName when path value is the same #114

Closed haosong closed 5 years ago

haosong commented 6 years ago

https://github.com/opentracing-contrib/java-jaxrs/blob/master/opentracing-jaxrs2/src/main/java/io/opentracing/contrib/jaxrs2/server/OperationNameProvider.java#L74

@GET
@Path("/test/{id}/{subid}")

When the path parameters in the given URI have same value such as: /test/1/1, the operation name will be matched as /test/{subid}/{subid}

pavolloffay commented 6 years ago

thanks for reporting @song-hao, do you have a fix for this?

haosong commented 6 years ago

@pavolloffay Tried, haven't found the proper way to fix this yet.