langfuse-session-view

Original🇺🇸 English
Translated
1 scripts

View Langfuse session details with all traces. Use when analyzing conversation flows, checking session costs, or debugging multi-turn interactions.

6installs
Added on

NPX Install

npx skill4agent add neuradex/langfuse-skills langfuse-session-view

Langfuse Session View

Display detailed information and all traces for a specific session.

Setup

Set the following environment variables before use:
VariableRequiredDescription
LANGFUSE_PUBLIC_KEY
YesLangfuse public key
LANGFUSE_SECRET_KEY
YesLangfuse secret key
LANGFUSE_HOST
or
LANGFUSE_BASE_URL
NoLangfuse host URL (default:
https://us.cloud.langfuse.com
)

When to Use

  • Checking specific session details
  • Analyzing conversation flows
  • "Show me all traces for this session"
  • Investigating by session ID

Commands

1. Get Session Details

bash
npx tsx scripts/langfuse-session-view.ts <sessionId>

2. Specify Trace Count

bash
npx tsx scripts/langfuse-session-view.ts <sessionId> --limit=100

3. JSON Output

bash
npx tsx scripts/langfuse-session-view.ts <sessionId> --json

Output Example

Langfuse Session Detail
=======================

Session ID: se:9ed69537-5952-40ee-9d98-5e1197fc5726
Created:    2025-01-15 10:30:45
Project:    project-123

Summary:
  Total Traces: 74
  Total Cost:   $0.1234
  Avg Latency:  856ms

Trace Types:
  chunk-extraction: 70
  chunking: 3
  source-parse: 1

Traces (50 of 74):
----------------------------------------------------------------------------------------------------
Timestamp           Name                                    Latency     Cost        ID
----------------------------------------------------------------------------------------------------
2025-01-15 10:30:45 chunk-extraction:abc123                 1234ms      $0.0150     abc123...
2025-01-15 10:30:46 chunk-extraction:def456                 856ms       $0.0080     def456...

Fields

FieldDescription
Session IDSession identifier
CreatedCreation timestamp
ProjectProject ID
Total TracesTotal number of traces in the session
Total CostEstimated total cost for the session
Avg LatencyAverage processing time
Trace TypesTrace count by name