Enabling the Trace function for the Ingest and Query services

In order to use tracing with the Ingest and Query services, configure the feature in your helm charts. Tracing for these services is not enabled by default in HCL Commerce

Both the Ingest and Query services are configured using Spring Boot. In order to enable tracing for them, define a new environment parameter in the helm charts.

Procedure

  1. Change to the directory where you unpacked your HCL_Commerce_Helm_Charts_9.x helm charts. Edit the values.yaml configuration file.
  2. Add the following environment variable to values.yaml, specifying the application name and image. In the example, tracing for the Ingest service is configured.
    ingestApp:
      name: ingest-app
      image: search-ingest-app
      tag: 9.1.1.0
      replica: 1
      resources:
        requests:
          memory: 2048Mi
          cpu: 500m
        limits:
          memory: 4096Mi
          cpu: 2
      ## when using custom envParameters, use key: value format
      envParameters:
    {     logging.level.org.springframework: DEBUG     }
    
      nodeLabel: ""
      fileBeatConfigMap: ""
  3. Save and close the configuration file.
  4. Redeploy the helm charts.

Result

Tracing is now enabled for the service or services you defined. For more information about the tracing levels that are available in Springboot, see 4. Logging, in the Spring Boot Features guide.