---
title: Trace
description: API reference for all public classes and functions.
canonical: 'https://lightning.ai/docs/thunder/stable/api-reference/core/trace'
---
# Trace {#trace}

- [`TraceCtx`](/docs/thunder/0.2.6/api-reference/generated/thunder.core.trace.TraceCtx.md) — Trace representing fn.
- [`from_trace`](/docs/thunder/0.2.6/api-reference/generated/thunder.core.trace.from_trace.md)
- [`set_tracectx`](/docs/thunder/0.2.6/api-reference/generated/thunder.core.trace.set_tracectx.md) — Sets the current trace context.
- [`get_tracectx`](/docs/thunder/0.2.6/api-reference/generated/thunder.core.trace.get_tracectx.md) — Gets the current trace context, returning None if there is no current trace context.
- [`reset_tracectx`](/docs/thunder/0.2.6/api-reference/generated/thunder.core.trace.reset_tracectx.md) — Resets the tracing context.

---

**Navigation**

- Parent: [thunder.core](/docs/thunder/0.2.6/api-reference/core.md)
