truefoundry-tracing

Instrument Python and TypeScript apps with OpenTelemetry tracing via Traceloop SDK.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/truefoundry/tfy-deploy-skills --skill truefoundry-tracing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: truefoundry-tracing
Source: https://github.com/truefoundry/tfy-deploy-skills/tree/main/skills/tracing
Command: npx skills add https://github.com/truefoundry/tfy-deploy-skills --skill truefoundry-tracing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Adds OpenTelemetry-based tracing to applications using TrueFoundry's tracing platform (powered by Traceloop SDK). Creates tracing projects, instruments Python/TypeScript code, and captures LLM calls and custom spans.

Core Features & Use Cases

  • Create tracing projects and install Traceloop SDK in Python or TypeScript apps
  • Instrument entry points to automatically capture LLM calls, workflows, and custom spans
  • Visualize traces and diagnose performance issues in the TrueFoundry tracing dashboard

Quick Start

Run the tracing setup to create a Traceloop project, install the Traceloop SDK, and instrument your application's entry point.

Frequently Asked Questions about truefoundry-tracing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add OpenTelemetry distributed tracing to my Python or TypeScript app?

To add OpenTelemetry distributed tracing, you create a tracing project, install the Traceloop SDK, and instrument your application's entry point. Ensure Traceloop.init() runs at the very top of the entry file to capture spans.

Why are my application traces not visible in the TrueFoundry tracing dashboard?

Traces may not appear in the tracing dashboard if Traceloop.init() is not at the very top of the entry file, or if the TFY_BASE_URL and TFY_API_KEY environment variables are not correctly passed. A test request is also required to generate initial trace data.

Does TrueFoundry tracing support capturing LLM calls and custom spans automatically?

Yes, TrueFoundry tracing supports capturing LLM calls and custom spans automatically. By installing the Traceloop SDK and instrumenting your app's entry point, the integration automatically captures LLM calls, workflows, and custom spans for observability.

What environment variables do I need to configure for OpenTelemetry instrumentation with Traceloop?

For OpenTelemetry instrumentation with Traceloop, you must pass the TFY_BASE_URL and TFY_API_KEY via environment variables. You also need to include the X-TFY-TRACING-PROJECT-FQN header where applicable to ensure traces route correctly.

Can I use OpenTelemetry tracing for applications deployed within TrueFoundry deployment workflows?

Yes, you can use OpenTelemetry tracing for Python and TypeScript apps within TrueFoundry deployment workflows. The setup process instruments your app's entry point to ensure traces are visible in the tracing dashboard after a test request.

What is the best way to instrument an application's entry point for distributed tracing?

The best way to instrument an entry point for distributed tracing is to ensure Traceloop.init() runs at the very top of the entry file. This allows the Traceloop SDK to automatically capture LLM calls and custom spans across your application workflows.