Docker Configuration
In order to enable tracing in Microservices, following configurations are to be added.
| Configuration | Configuration Description |
|---|---|
| temn.msf.tracer.enabled: boolean (Eg true or false) | Switch to enable or disable tracing functionality for a given service. |
| temn.tracer.exporter.host: hostname (Eg jaeger or "172.25.0.7") | Hostname or Service name of any tracing backend service. (Currently we are using Jaeger) |
| temn.tracer.exporter.port: 4317 | Port number of tracing backend service. |
| temn.msf.service.name: Any string (Eg INGESTER) | When given will be used to generate name of service. For example, TEMN-MICROSERVICE-{MSname}-{service-name} |
Tracing can be monitored for all the type of services such as API and ingestion. Following is an example configuration for the API services to be monitored.
Enable Tracing in Docker
To configure in Docker, set the following Tracing configuration properties as Environment Variables in ms-savingspot-mongo.yml / ms-savingspot-postgresql.yml.
By default, Jaeger is disabled. To enable it, set the property temn_msf_tracer_enabled as true. The host port should be the system IP address before the service.
#--- Tracing Configuration ---
temn.msf.service.name: "spApi"
temn.msf.tracer.enabled: "false"
temn.tracer.host: jaeger
temn.tracer.port: 4317
temn.msf.logger.root_level: ${temn_msf_logger_root_level}
The temn.tracer.port and temn.tracer.host configuration are available as java configuration. not as env-configuration. Hence update the following command in src/docker/config/ ENV.env to configure port and host name.
java_options="-Xmx4g -Dtemn.tracer.host=jaeger -Dtemn.tracer.port=4317"
In this topic