Trace URL

Trace URLs

Each trace has a unique URL that you can use to share it with others or to access it directly.

Get trace url

Sometimes, it is useful to get the trace URL directly in the SDK. E.g. to add it to your logs or interactively look at it when running experiments in notebooks.

When using the @observe() decorator:

from langfuse.decorators import langfuse_context, observe
def fn():

When using the low-level SDK:

trace = langfuse.trace(...)

Share trace via url

By default, only members of your Langfuse project can view a trace.

You can make a trace public to share it via a public link. This allows others to view the trace without needing to log in or be members of your Langfuse project.

Example: (opens in a new tab)

Was this page useful?

Questions? We're here to help

Subscribe to updates