Hey team @Vapi#3739 , how to set
# office-hours
r
Hey team @Vapi , how to set Langfuse environment in VAPI? I'm using Langfuse with VAPI and traces are generated correctly. I tried setting the environment via metadata using the
env
and
environment
keys, but it didn’t work. What’s the correct way to do it?
Just to clarify , when I said it didn’t work by passing env as metadata, I meant that the Env filter in Langfuse still only shows the default option, even though the key does appear in the metadata object. So it seems like the environment isn’t being properly recognized. Maybe Langfuse doesn’t expect the environment to be set via metadata, but rather as an environment variable (
LANGFUSE_TRACING_ENVIRONMENT
) or a specific parameter, as mentioned here: https://langfuse.com/docs/tracing-features/environments? Any guidance would be appreciated! https://cdn.discordapp.com/attachments/1396964368260010027/1396967770310049936/Screenshot_2025-07-21_at_4.30.30_PM.png?ex=6880031e&is=687eb19e&hm=6a3c70681fb443de878901ec9f4e0986429f98617b4f76f70f2d90f8fbc85052& https://cdn.discordapp.com/attachments/1396964368260010027/1396967770524225767/Screenshot_2025-07-21_at_4.29.34_PM.png?ex=6880031e&is=687eb19e&hm=2a75c53f60168ad0dace2be3b2a7d8f9078facf494bc424090d5fa6802ad4670&
3 Views