Skip to content

Commit

Permalink
Complete documentation for peer service mapping
Browse files Browse the repository at this point in the history
After providing the possibility to override peer.service attribute by host, port and path. This add documentation.

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
Co-authored-by: Severin Neumann <severin.neumann@altmuehlnet.de>
  • Loading branch information
mmorel-35 and svrnm committed Oct 24, 2023
1 parent 667cb13 commit 4bf2d01
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions content/en/docs/instrumentation/java/automatic/agent-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,18 @@ Then, requests to `1.2.3.4` will have a `peer.service` attribute of
`cats-service` and requests to `dogs-abcdef123.serverlessapis.com` will have an
attribute of `dogs-api`.

Since Java agent version `1.31.0`, it is possible to provide a port and a path
to define a `peer.service`.

For example, if set to the following:

1.2.3.4:443=cats-service,dogs-abcdef123.serverlessapis.com:80/api=dogs-api

Then, requests to `1.2.3.4` will have no override for `peer.service` attribute,
while `1.2.3.4:443` will have have `peer.service` of `cats-service` and requests
to `dogs-abcdef123.serverlessapis.com:80/api/v1` will have an attribute of
`dogs-api`.

{{% /config_option %}}

### DB statement sanitization
Expand Down

0 comments on commit 4bf2d01

Please sign in to comment.