You don't need to bring an amp, unless you have something cool and vibey and the producer wants to try it (like a B15 for example). If you have a DI, sure bring it (I always have a JDI in my bag) but the studio will typically plug you into what they use and prefer. There's usually a JDI or a Countryman sitting there on the floor in your spot when you walk in. 98% of the time you're just going to be DI'd.
If they like to track with an amp, they'll have that set up already or discuss it w you beforehand. Lotsa folks often save tracking a bass amp for later if we want an amp track, and then simply re-amp the bass. That way you can play w different amps easily, plus you have no issues with bleed if there isn't good isolation for cranking a bass amp (like many smaller studios).
What I would absolutely do though, is have more than one bass on hand. This could be for example, one bass w old flats, one w bright rounds. Or if your bass is active, bring a passive Fender-style P or J as an option. Maybe you bring a P or a J, and also some kind of shorty hollowbody. Whatever gives you another good tonal option. If you only have one bass, consider renting or borrowing another. Maybe a bandmate has something cool they can bring as an option.
Make sure whatever you bring is setup with the intonation dialed, no noisy jacks, etc.
If as mentioned above they have a gear list and that includes a bass or two, then don't need to sweat it as much, bring one if that's all you have.