This section introduces the LLM application observability log application provided in the TLS application marketplace.
By integrating LLM application observability data, services such as LLM application cost and performance analysis, call chain analysis, and session analysis are provided.
Monitoring chart details
The monitoring chart details for TLS LLM application observability are as follows:
- Cost and performance analysis
- Displays the Trace ID, status, total duration (ms), start time, and end time for the specified call chain.
- Displays the Input / Session ID, tokens, total duration (ms), call chain, user ID, and start time for the specified session.
Integrate log applications
- Select the region where log service is located from the top navigation bar.
- In the left navigation bar, click Common functions > Log application.
- On the App store tab, select the log application card to be integrated. For example, on the LLM application observability card, click Integrate application.
- Configure the integration application parameters, and then click Create LLM observability.
- After creating the application, proceed to the next step to integrate LLM application data.
Integrate LLM application data
After completing the creation of LLM application observability, LLM application data must be integrated to use the performance and cost analysis dashboards, call chain analysis, session analysis, and other capabilities.
Integrate using Python applications
- Download and install the Python agent.
- Download the probe installer from the PyPI repository.
- Configure environment variables.
- Manually add the following environment variables to the Python application:
Notice
- x-tls-appid: Automatically populated by the frontend based on the name created by the user.
- x-tls-otel-region: Automatically populated by the frontend based on the current Region.
- (Optional) For Docker environments, refer to the following Dockerfile example to modify the Dockerfile:
- Install the Python probe using volc-tls-bootstrap.
- To speed up installation, it is recommended to configure the image repository first using the following command:
- Start the application using the TLS Python probe
- Start the application without using the TLS Python probe (optional)
- To start the application without using the Python probe, import the Python probe in the main entry file, and then start the application. For example, import the Python probe in the main.py/app.py file.
Notice
- If the application is started using Unicorn, you need to replace it with Gunicorn.
- If gevent coroutines are used, you need to set the environment variable GEVENT_ENABLE=true.
Integrate using Eino applications
- Configure environment variables.
- Manually add the following environment variables to the Eino application:
Notice
- x-tls-appid: Automatically populated by the frontend based on the name created by the user.
- x-tls-otel-region: Automatically populated by the frontend based on the current Region.
- (Optional) For Docker environments, refer to the following Dockerfile example to modify the Dockerfile:
After the log application is successfully connected, you can manage connected log applications as follows:
- Select the region where log service is located from the top navigation bar.
- In the left navigation bar, click Common functions > Log application.
- Go to the My applications tab. In the Actions column for the corresponding log application, the following management operations are supported: