0Pricing
MLOps Academy · Ders

LLM Çağrılarını İzleyip Gözlemleyin

İstek başına belirteçleri, gecikmeyi ve maliyeti toplayın.

LLM Çağrılarını İzleyip Gözlemleyin, CoddyKit'te ücretsiz bir MLOps Academy dersidir. Bu, 4 dersinin 3. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, MLOps Academy öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. MLOps Academy kursu toplamda 4 dersten oluşur.

Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.

You Cannot Fix What You Cannot See

An LLM app feels like a black box until you log what it does. Tracing records each call so you can debug, cost, and improve it later. 🔍

Capture the Request

For every call, log the final prompt, the model name, and key parameters. This request record lets you reproduce any answer exactly.

log.info({"model": "gpt-4o", "prompt": prompt, "temperature": 0.2})

Capture the Response

Save the generated text alongside the request. Together the input and output form one trace you can replay, score, or share with a teammate.

Record Token Usage

Each response reports tokens in and out. Logging tokens per call is how you attribute cost and spot prompts that quietly grew too large.

usage = response.usage
log.info({"in": usage.input_tokens, "out": usage.output_tokens})

Turn Tokens Into Cost

Multiply token counts by the price per token to get spend. Tracking cost per request keeps a runaway feature from surprising you on the bill.

cost = inp / 1e6 * 2.50 + out / 1e6 * 10.00

Measure Latency

Time each call from send to final token. Watching latency per request reveals slow prompts and tells you when streaming would help users.

start = time.perf_counter()
response = client.responses.create(...)
latency = time.perf_counter() - start

Spans Build a Trace

A real request may chain retrieval, the LLM, and a tool. Each step is a span, and nesting them into one trace shows where time and tokens go.

Tools Built for LLMs

Platforms like LangSmith, Langfuse, and Phoenix capture traces with one wrapper. A purpose-built observability tool beats parsing raw logs by hand.

from langfuse.openai import openai
response = openai.responses.create(model="gpt-4o", input=prompt)

Tag Traces With Metadata

Attach a user id, prompt version, and feature name to each trace. This metadata lets you slice metrics and find which segment is misbehaving.

Sample What You Cannot Store

At high volume, logging every full payload is costly. Sampling a fraction of traces keeps insight while controlling storage and privacy.

Dashboards and Alerts

Roll traces into dashboards for cost, latency, and error rate, then alert on spikes. Now production problems reach you before users complain.

Quick Check

Your monthly LLM bill jumped with no traffic change. Which logged value explains it fastest?

Recap

You can now trace LLM calls end to end: request, response, tokens, cost, latency, and spans, then watch them on dashboards. Eyes wide open! 🎉

Sıkça Sorulan Sorular

“LLM Çağrılarını İzleyip Gözlemleyin” dersi ücretsiz mi?

Evet — “LLM Çağrılarını İzleyip Gözlemleyin” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve MLOps Academy kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. MLOps Academy kursu toplamda 4 dersten oluşur.

“LLM Çağrılarını İzleyip Gözlemleyin” dersinde ne öğreneceğim?

İstek başına belirteçleri, gecikmeyi ve maliyeti toplayın. MLOps Academy ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.

MLOps Academy öğrenmeye başlamak için deneyim gerekli mi?

Önceden deneyim gerekmez. CoddyKit'te MLOps Academy, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 3. dersidir.

“LLM Çağrılarını İzleyip Gözlemleyin” dersi ne kadar sürer?

Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.

Bu MLOps Academy dersinde kod yazıp çalıştırabilir miyim?

Evet. Her MLOps Academy dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.

Bu kursun tüm dersleri

  1. LLMOps, Klasik MLOps'tan Nasıl Farklılaşır
  2. İstemleri Sürümleyip Çıktıları Değerlendirin
  3. LLM Çağrılarını İzleyip Gözlemleyin
  4. Koruma Sınırları ve RAG Değerlendirmesi
← MLOps Academy Sayfasına Dön