What is a tracing project?

A tracing project helps you collect and organize traces of a specific service. It allows teams to view and analyze traces. Create a new tracing project for every service. To know more about tracing, please refer to the tracing.

How to create a tracing project?

A tracing project can be created from the truefoundry UI or programmatically. Creating an ML Repo is a prerequisite. If you haven’t created an ML Repo, please refer to the ML Repo Quickstart.

Only users with access to an ML Repo can create tracing projects and view their trace data.

Creating a tracing project with UI

To create a tracing project from the UI:

  • Navigate to your ML Repo.
  • Go to the Trace Projects tab.
  • Click New Trace Project and enter the project name.
  • Click Submit.

Creating tracing projects

Creating a tracing project programmatically

You can create a tracing project programmatically using the TrueFoundry SDK.

from truefoundry import client
from truefoundry_sdk import TracingProjectManifest

result = client.tracing_projects.create_or_update(
    manifest=TracingProjectManifest(
      ml_repo="{ML_REPO_NAME}",
      name="{TRACING_PROJECT_NAME}"
    )
)
print(result.data.fqn)

How to log traces?

To publish traces, you need to use the Tracing Project FQN. Use this Tracing Project FQN along with the access token to publish traces. For detailed instructions, please refer to the tracing documentation.