For an EU LangSmith account, set LANGSMITH_ENDPOINT to https://eu.api.smith.langchain.com in every environment that runs your agent code. The documented command is:
export LANGSMITH_ENDPOINT="https://eu.api.smith.langchain.com"This is the first setting to audit when tracing appears enabled but no traces arrive. LangChain’s tracing documentation gives that EU value and states the underlying rule directly:
If your account is in a region other than US (the default), also set LANGSMITH_ENDPOINT to the API URL for your region. Without this, your API key won’t be recognized and requests will fail to authenticate.
An empty trace view is a reasonable practical consequence of failed telemetry requests, but that last step is an inference. The documentation establishes the authentication failure; it does not promise that every SDK, notebook, CI runner or production process will surface the same visible error. Region mismatch is therefore a well-supported diagnosis to check first, not the only possible explanation for missing traces.
The requirement follows the account region, not your laptop’s location
The documented condition is a LangSmith account outside the US default region. A developer working in Germany does not automatically need the EU endpoint for a US-default account, while an EU account still needs its regional configuration when the code runs elsewhere.
That distinction prevents two unhelpful fixes: changing application code that was never the problem, or copying an endpoint based on the team’s physical location rather than the account configuration.
The available documentation also does not support publishing a complete region-to-hostname table. The LangGraph tracing guide names GCP US, GCP EU, GCP APAC and AWS US as LangSmith regions, but the fetched excerpts expose only the EU endpoint URL. For another region, obtain the exact API URL from current official LangSmith documentation or your account configuration. Do not construct an APAC or AWS hostname by analogy with the EU address.
The endpoint is an additional regional requirement, not a replacement for the API key or the rest of your tracing setup.
The one-line fix has a multi-environment rollout
Because the fix is an environment variable, application source is not the main control surface. Environment configuration is. That removes the need for a code change, but it creates a coordination task anywhere the same agent runs.
LangChain’s documentation does not publish the following environment checklist. It is an operational inference from the environment-variable mechanism:
- Local development: Set the endpoint in the shell or process environment that actually starts the application. A successful run in one developer’s shell does not show that another shell, test runner or notebook has the variable.
- CI: Expose the value to each job that executes tracing-enabled agent code. Storing it in CI configuration is not the same as confirming that the relevant job receives it.
- Containers: Check the container’s runtime environment. A value present on the host or in the image-building shell is not evidence that the running container inherited it.
- Production and auxiliary runs: Apply the same check to deployed services and any separate jobs that execute agent code. A production deployment can be correctly configured while a CI evaluation or maintenance job still fails to authenticate.
Partial rollout can look like intermittent tracing. One environment authenticates and sends traces; another lacks the variable and its requests fail. Comparing application revisions will not explain that pattern if the same revision runs in both places.
A useful diagnosis follows the configuration path:
- Confirm the LangSmith account region.
- Inspect
LANGSMITH_ENDPOINTfrom the failing process’s environment, rather than assuming a configuration file was loaded. - For an EU account, compare the value with the documented URL exactly.
- Run the tracing-enabled workload again and inspect request or runtime logs for an authentication error where that environment exposes them.
- If another environment works, compare its effective environment with the failing one before changing instrumentation code.
A single successful traced run from each execution environment is a sensible rollout gate. It verifies that the setting reached that environment; it does not establish that every later missing trace will have the same cause.
The same regional rule appears on the LangGraph path
This is not confined to applications that directly use the LangChain library. LangChain says LangSmith integrates with LangGraph in Python and JavaScript to trace agents, whether they use LangChain modules or other SDKs. Its LangGraph tracing page repeats the same non-US requirement and the same EU example.
That broadens the documented relevance of the setting across two tracing paths and both language ecosystems. It does not justify a universal claim about every observability SDK or backend. The narrower conclusion is useful enough: on the documented LangChain and LangGraph paths, moving to LangGraph or using other SDKs within that tracing setup does not remove the regional endpoint requirement.
For platform teams, that means the setting belongs in shared deployment configuration rather than in framework-specific instructions that only one application team will see.
How this changes the Pydantic AI versus LangChain decision
Pydantic AI documents a different telemetry model. According to Pydantic’s AI overview, its instrumentation is OpenTelemetry-native and works with any OpenTelemetry backend. The same page says any OTLP-compatible backend works and describes Logfire as a way to view standard OpenTelemetry data from Pydantic AI.
For teams choosing between the frameworks, that shifts the question from “Which one has tracing?” to “Which telemetry backend and operating model do we want to support?”
| Decision axis | LangSmith with LangChain or LangGraph | Pydantic AI with Logfire or another backend |
|---|---|---|
| Documented regional setup | Non-US accounts must set LANGSMITH_ENDPOINT to the regional API URL. The documented EU value is https://eu.api.smith.langchain.com. | Pydantic documents OpenTelemetry-native instrumentation. The evidence reviewed here does not establish an equivalent regional rule, but that absence is not proof that a deployment needs no backend configuration. |
| Backend model | The documented paths send LangSmith tracing through LangSmith’s regional service configuration. | Pydantic says its instrumentation works with any OTel backend and that any OTLP backend works. |
| Hosting evidence | The LangGraph page names several LangSmith regions, but the excerpts do not provide their complete URL mapping or a broader residency assessment. | Pydantic describes Logfire as hosted by Pydantic or self-hosted on Enterprise. Self-hosting is a deployment option, not evidence that hosted Logfire provides EU residency. |
| Entry-cost evidence | LangSmith pricing is not established by the evidence reviewed here. | Pydantic advertises 10M telemetry records free every month with no credit card. Its AI overview describes GitHub sign-up. This is a vendor-published snapshot, not a price comparison with LangSmith. |
Pydantic also documents a one-time Logfire enablement command:
uvx logfire-cli wizard --task pydantic-aiThat command is a vendor-documented setup step for Logfire, not evidence that an entire production observability deployment requires only one command. Likewise, OpenTelemetry instrumentation does not establish that a chosen backend has suitable regional hosting, retention, access controls or operational behavior.
The distinction still matters. If your organization already wants to route telemetry to different OpenTelemetry backends, Pydantic AI’s documented model is directly relevant. If your organization has standardized on LangSmith, the immediate task is simpler: make the regional endpoint mandatory configuration and operate it consistently.
Do not let vendor-published proxies settle the comparison
Pydantic’s homepage publishes a testimonial from Andrew Pignanelli, Founder and CEO of General Intelligence Company, claiming that migrating from LangSmith to Logfire cut agent-trace query time by 96.2%. That is a named customer claim published by the vendor, not an independent benchmark. The evidence reviewed here supplies no test methodology or independent replication, so it cannot establish that another team’s queries will improve by the same amount.
Repository popularity is similarly weak evidence for this decision. A repository in Pydantic’s GitHub organization was described as an AI observability platform for production LLM and agent systems and showed 4.6k stars and 398 forks in the accessed snapshot. Those figures indicate adoption interest; they do not demonstrate capability parity with LangSmith, regional behavior or production suitability.
What this diagnosis cannot confirm
The authentication-failure account currently rests on LangChain’s first-party documentation. The evidence reviewed here contains no independent failure reports corroborating it and no release notes establishing when the regional requirement appeared or last changed. The exact error presentation across SDK versions and execution environments also remains unresolved.
On the Pydantic side, the evidence does not establish Logfire’s EU data residency, feature parity with LangSmith or a measured performance advantage. Conversely, an EU LangSmith API hostname answers the tracing configuration question; by itself, it does not answer a team’s broader residency or regulatory requirements.
Those limits change how I would proceed. For a non-US LangSmith account, I would treat LANGSMITH_ENDPOINT as required configuration alongside the API key, audit it first when traces disappear, and require a successful traced run from each environment before calling the rollout complete. For regions without a documented URL in the excerpts, I would stop and verify the official value rather than guess.
If backend portability is a deciding requirement, Pydantic AI’s OpenTelemetry-native model deserves a separate evaluation. If EU hosting or residency is the deciding requirement, neither the endpoint fix nor the vendor’s self-hosting statement is enough to settle it.
Frequently Asked Questions
Does the LangGraph tracing path require the same regional endpoint setting?
LangChain says LangSmith integrates with LangGraph in Python and JavaScript to trace agents, whether they use LangChain modules or other SDKs. Its LangGraph tracing page repeats the same non-US requirement and the same EU example.

Join the discussion
Share a useful perspective or ask a question about this article.