As the TDV instance is serving user's request, you may notice failed requests in the Studio's Requests console, when the metrics data is being stored in a Postgres-based datasource table.
Looking in our /logs/cs_server.log file, you may see entries similar to these:
Caused by: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(65535)
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2433)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2178)
... 22 more
Chained Exception 1 : org.postgresql.util.PSQLException: ERROR: value too long for type character varying(65535)
Normally, the 'metrics_requests' table includes these 2 columns: 'description' and 'message'. If the metrics_requests table was created in a Postgres-based table, then these 2 columns are of type varchar(65535) as mentioned in the error message.
However, this column width may not be large enough to store very large sql requests that exceed this length. Thus, the resulting error occurs when TDV attempts to insert the too-large entries into the 'metrics_requests' table.