Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 352. Mapping rules
The service name mapping for server occurs using the following rules
- Is there an exclude pattern that matches the endpoint uri of the from endpoint? If yes then skip.
- Is there a match in the serviceServiceMapping that matches the endpoint uri of the from endpoint? If yes, then use the found service name
- Is there a match in the serviceServiceMapping that matches the route id of the current route? If yes, then use the found service name
- Is there a match in the serviceServiceMapping that matches the original route id where the exchange started? If yes, then use the found service name
- No service name was found, the exchange is not traced by zipkin
The service name mapping for client occurs using the following rules
- Is there an exclude pattern that matches the endpoint uri of the from endpoint? If yes then skip.
- Is there a match in the clientServiceMapping that matches the endpoint uri of endpoint where the message is being sent to? If yes, then use the found service name
- Is there a match in the clientServiceMapping that matches the route id of the current route? If yes, then use the found service name
- Is there a match in the clientServiceMapping that matches the original route id where the exchange started? If yes, then use the found service name
- No service name was found, the exchange is not traced by zipkin
352.1. No client or server mappings Copier lienLien copié sur presse-papiers!
If there has been no configuration of client or server service mappings, CamelZipkin runs in a fallback mode, and uses endpoint uris as the service name.
In the example above, this would mean the service names would be defined as if you add the following code yourself:
zipkin.addServerServiceMapping("activemq:queue:inbox", "activemq:queue:inbox");
zipkin.addClientServiceMapping("http:someserver/somepath", "http:someserver/somepath");
This is not a recommended approach, but gets you up and running quickly without doing any service name mappings. However, when you have multiple systems across your infrastructure, then you should consider using human-readable service names, that you map to instead of using the camel endpoint uris.