opentracing-contrib / java-web-servlet-filter

OpenTracing Java Web Servlet Filter Instrumentation
Apache License 2.0
24 stars 31 forks source link

More descriptive operation names #42

Closed zdicesare closed 6 years ago

zdicesare commented 6 years ago

Currently the span names are set to the method of the request, e.g. POST.

It would be helpful if this were something like: 'HTTP POST api/v1/foo/' or just included the endpoint.

Alternatively, we could configure the tracer with a function that returns a span name from a request.

pavolloffay commented 6 years ago

Http verb as operation name is chosen on purpose. Path cannot be used as operation name because one endpoint /user/{id} can produce different operation names.