79133379

Date: 2024-10-28 12:29:42
Score: 0.5
Natty:
Report link

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

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: tam