/**
 * Read raw string payload from localStorage.
 */
export function getRawTraceFromLS(itemName: string): string | null {
  try {
    const stored = localStorage.getItem(itemName)
    return stored ?? null
  } catch {
    console.error('Error loading local trace from storage')
    return null
  }
}
