Skip to content

Commit

Permalink
Add documentation for peer service mapping (#3428)
Browse files Browse the repository at this point in the history
Co-authored-by: Severin Neumann <neumanns@cisco.com>
  • Loading branch information
mmorel-35 and svrnm authored Oct 25, 2023
1 parent e195361 commit 0e938bd
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 0e938bd

Please sign in to comment.