さらに送信する
ログ
インストール HTTP, NDJSON or OpenTelemetry
ログは https://in.blipit.io/api/v1/logs に JSON 配列または NDJSON で送信します。1リクエストあたり最大 1,000 行または 1 MB、gzip 可、シークレットキーまたは公開キーを使用します。OpenTelemetry のログエクスポーターは /v1/logs に POST します。各行は message と level に加え、任意で timestamp、service、environment、trace_id、最大 50 個のフラットな attributes を持ちます。
1任意の言語
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
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、バッチ送信
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();知っておくと便利
- 月間の枠(サイズ):Free 1 GB、Solo 5 GB、Team 20 GB、Scale 100 GB。枠を超えると翌月まで新しい行は破棄されますが、請求されることはありません。
- 保持期間:Free は3日、Solo は14日、Team と Scale は30日。
お困りですか?support@blipit.io までメールしてください。各プロジェクトのキーと正確な DSN は app.blipit.io の「APIキー」にあります。

