From 7df26d1170db37b6b79e4b9ec4336c5e6dfb682d Mon Sep 17 00:00:00 2001 From: Niloy Ghosh Date: Thu, 20 Nov 2025 12:36:44 +0530 Subject: [PATCH 1/2] docs: add SSL troubleshooting to delete traces script --- src/langsmith/script-delete-traces.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/langsmith/script-delete-traces.mdx b/src/langsmith/script-delete-traces.mdx index ff40a22db4..f191b56e17 100644 --- a/src/langsmith/script-delete-traces.mdx +++ b/src/langsmith/script-delete-traces.mdx @@ -66,3 +66,17 @@ sh delete_trace_by_id.sh "clickhouse://default:password@localhost:8123/default" ``` If you visit the LangSmith UI, you should now see all the specified traces have been removed. + +## Troubleshooting + +### *"Could not find trace IDs"* error + +If you receive an error message stating that trace IDs could not be found, you may need to add the `--ssl` flag to your command. Without this flag, the script may not be able to properly connect to ClickHouse, resulting in false "trace ID not found" errors. + +Example with SSL flag: + +```bash +sh delete_trace_by_id.sh "clickhouse://default:password@localhost:8123/default" --file path/to/traces.txt --ssl +``` + +You can also verify that traces exist by connecting to ClickHouse directly using `clickhouse-cli` and querying for the trace IDs before running the deletion script. From 299e7b6d93bd8efd16358f3c421f1ed2093df05a Mon Sep 17 00:00:00 2001 From: Lauren Hirata Singh Date: Thu, 20 Nov 2025 12:22:53 -0500 Subject: [PATCH 2/2] Apply suggestions from code review --- src/langsmith/script-delete-traces.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/langsmith/script-delete-traces.mdx b/src/langsmith/script-delete-traces.mdx index f191b56e17..e284236bf2 100644 --- a/src/langsmith/script-delete-traces.mdx +++ b/src/langsmith/script-delete-traces.mdx @@ -69,9 +69,9 @@ If you visit the LangSmith UI, you should now see all the specified traces have ## Troubleshooting -### *"Could not find trace IDs"* error +### "Could not find trace IDs" error -If you receive an error message stating that trace IDs could not be found, you may need to add the `--ssl` flag to your command. Without this flag, the script may not be able to properly connect to ClickHouse, resulting in false "trace ID not found" errors. +If you receive an error message stating that trace IDs could not be found, add the `--ssl` flag to your command. Without this flag, the script may not be able to properly connect to ClickHouse, resulting in false "trace ID not found" errors. Example with SSL flag: