Need clarification for `/api/v2/search/tags` endopint scope

Dear community,

I am working on Tempo APIs and /api/v2/search/tags it returns all tags from spans. My question is, what period/range does it use to fetch this information? For instance

If I add a new service, and this service has additional tags, I see them all, endpoints returns all additional tags, but if the service does not send a span for more than 1 hour, these tags disappear. I think this endpoint fetches tags from the last X min/sec/hr spans.

Can you tell me which configuration item controls it, or is it fixed? I tried to find it in the code, but my Go skills failed to follow.

Wow, this is exactly what I need, thanks a lot.