Loglar

Kurulum HTTP, NDJSON or OpenTelemetry

Loglar, secret ya da public key ile, istek başına en fazla 1.000 satır ya da 1 MB, gzip kullanılabilir, JSON dizisi ya da NDJSON olarak https://in.blipit.io/api/v1/logs adresine gider. OpenTelemetry log exporter'ları /v1/logs adresine POST eder. Her satır message ve level, artı isteğe bağlı timestamp, service, environment, trace_id ve en fazla 50 düz attribute içerir.

Claude Code, Cursor veya başka bir yapay zekâ kodlama asistanına yapıştırın. Adımları ve kodu içerir. app.blipit.io'da API anahtarları altında aynı istem, anahtarınız yazılmış olarak gelir.

1Herhangi bir dil

sh
curl https://in.blipit.io/api/v1/logs \
  -H "Content-Type: application/json" \
  -H "X-Blipit-Key: <secret key>" \
  -d '[{"level":"info","message":"order placed","service":"api","attributes":{"order_id":42}}]'

2OpenTelemetry

ini
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=https://in.blipit.io/v1/logs
OTEL_EXPORTER_OTLP_LOGS_PROTOCOL=http/json
OTEL_EXPORTER_OTLP_LOGS_HEADERS=x-blipit-key=<secret key>

3Node, toplu

js
const lines = [];
const log = (level, message, attributes = {}) =>
  lines.push({ level, message, service: "api", timestamp: new Date().toISOString(), attributes });

setInterval(() => {
  if (lines.length === 0) return;
  fetch("https://in.blipit.io/api/v1/logs", {
    method: "POST",
    headers: { "Content-Type": "application/json", "X-Blipit-Key": process.env.BLIPIT_SECRET_KEY },
    body: JSON.stringify(lines.splice(0, 1000)),
  }).catch(() => {});
}, 2000).unref();

Bilmekte fayda var

  • Aylık boyut kotası: Free 1 GB, Solo 2 GB, Team 8 GB, Scale 12 GB. Kota aşıldığında yeni satırlar sonraki aya kadar elenir, asla faturalanmaz.
  • Saklama: Free'de 3 gün, Solo'da 7, Team ve Scale'de 14.

Takıldınız mı? support@blipit.io adresine e-posta gönderin. Her projenin anahtarları ve proje id'si app.blipit.io içindeki API anahtarları altındadır.