Yes, this is possible with the OpenTelemetry Incubator extension, see: https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/incubator
We are using no-code instrumentation with the java agent (no sdk) and I was able to get the url.full property exported to our Azure backend.
My config yaml file for the HTTP client side metric:
- selector:
instrument_name: http.client.request.duration
view:
attribute_keys:
- url.full
- http.route
- http.request.method
- http.response.status_code
- server.address
You could do the same for the server side metric too.
For more info check out the discussion: https://github.com/open-telemetry/opentelemetry-java-instrumentation/discussions/11220