Before you start
Takes about ten minutes
Most apps change one file: the place that called
tempo.configure().Replace configure
ts
// v1import tempo from "tempo-http";tempo.configure({ baseUrl: API_URL });// v2import { createClient } from "tempo-http";export const api = createClient({ baseUrl: API_URL });Renamed options
retriesis nowretry.attempts.cacheTimeis nowcache.ttl, in milliseconds.onFailis nowonError.
ES modules only
require("tempo-http") no longer works. Node.js 20 can import it from CommonJS with a dynamic import().