Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

771 B
Raw Blame
import { Message } from 'node-rdkafka'

import type { InternalLogs } from './internal-logs'

export type LogsIngestionMessage = {
    token: string
    teamId: number
    message: Message
    bytesUncompressed: number
    /** Sum of per-record content sizes from the `bytes_uncompressed_records` header; 0 for batches from older producers. */
    bytesUncompressedRecords: number
    bytesCompressed: number
    recordCount: number
    /** Earliest row timestamp in epoch microseconds, from the `min_timestamp` header; absent from older producers. */
    minTimestampMicros?: number
    backfillRequested?: boolean
    /** The posthog-internal header was present, whether or not it verified. */
    sentAsInternalLogs: boolean
    verifiedAsInternalLogs?: InternalLogs
}