Why LLM Tracing Tools Are Now Building AI Gateways

In 2026, LangSmith, Langfuse, Opik and Braintrust all added a gateway in front of the model providers. The main reason is control: a tracing tool can only record a model call, while a gateway can stop one.
For the past two years, many teams ran large language model (LLM) applications with two separate tools.A gateway sat between the application and the model providers.It held the provider API keys, translated between provider APIs and retried failed calls.
LiteLLM, an open-source proxy, became a common choice for this job.Beside the application sat a tracing tool such as LangSmith or Langfuse, which recorded each model call, tool call and retrieval step so that engineers could see what an agent had done.
The split made sense, because a gateway has to be fast and support every provider’s API, while a tracing tool needs a good interface, storage for large payloads and an SDK that wraps application code.
Langfuse still documents the two-tool setup, with a LiteLLM Proxy integration that sends every call through the proxy and into Langfuse.In 2026, the tracing vendors began building the gateway themselves.
LangChain announced the LangSmith LLM Gateway in private beta in May 2026 and opened it to public beta on 30 July, and has since made it part of LangSmith’s bring-your-own-cloud deployments as well.Braintrust deprecated its earlier AI proxy and pointed users to a new gateway, which is in preview and free until general availability.
Comet released the Opik LLM Gateway as a beta endpoint that accepts OpenAI-format requests.On 4 November, Langfuse opened its AI Gateway in public beta, both on Langfuse Cloud and for self-hosted deployments.
The gateway is MIT-licensed and written in Rust.
MLflow, which started as a machine learning lifecycle tool rather than a tracer, has had an AI gateway for longer, with budget alerts and limits.
Gateways have been around for years, and the risks of running one are well documented. The new gateways come from companies whose business was recording model calls, and those companies now want every call to pass through them first.
A tracing tool records a model call after the provider has answered and the tokens have been paid for. That record is enough to draw a spend chart, but the tracing tool cannot stop the spending. Enforcing a team’s budget, blocking a model or removing a secret from a prompt all mean checking the request before it reaches the provider. Only the component in the request path can do that.
LangChain makes this argument in its launch post. It describes teams combining a separate gateway, a guardrails product and an observability tool, and says that preventing problems means enforcing policies at the request layer. Its gateway answers a call that would exceed a budget with HTTP status 402 instead of forwarding it to the provider.
The second reason is coverage. An SDK records only the code paths that someone instrumented. Calls outside those paths are where agent failures tend to go unnoticed. A script on a laptop, a notebook or a coding agent using a copied API key leaves no trace. A gateway that holds the provider keys sees every call, because there is no other route to the provider.
Langfuse builds its gateway around this idea.According to its gateway documentation, each gateway key belongs to a user or a service account and can carry metadata such as a team or cost centre.Only the gateway holds the provider credential, and administrators approve which models each credential may call.
LangSmith publishes setup pages for routing Claude Code, Codex and Gemini CLI through its gateway.These agents call models from a developer’s machine, outside any application’s tracing code.
The tracing vendors also make the reverse argument: a standalone gateway is not enough on its own.Langfuse’s launch post says a standalone gateway can only count tokens and cost, while its own gateway makes each call part of a full trace.
Langfuse’s gateway accepts a W3C traceparent header, so a call through it joins the trace that the application has already started.By default it records usage and cost, not prompt and response content.
This is the strongest technical argument for building the gateway into the tracer. A standalone gateway sees a flat list of completions. A tracer already has the agent’s tool calls and retrieval steps from its SDK, and it can place each gateway call inside that structure.
There is also a commercial reading, which the vendors do not state themselves.Whoever runs the gateway holds the provider keys and the spend report, and the spend report is what finance and platform teams read.
That makes a gateway harder to replace than a trace viewer.LangSmith and Langfuse already use that position differently: LangSmith sells Gateway Credits, which let customers call hosted models such as Kimi without their own provider key, while Langfuse’s FAQ says it does not resell tokens.
These gateways are young, and the vendors document their own gaps. Langfuse’s gateway