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.

1.5 KB
Raw Blame
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`LogsIngestionConsumer general should process a valid log message 1`] = `
[
  {
    "json-parse": "false",
    "retention-days": "14",
    "source_partition": "1",
    "source_topic": "test",
    "team_id": "TEAM_ID",
    "token": "<REPLACED-UUID-0>",
  },
]
`;

exports[`LogsIngestionConsumer general should process multiple log messages 1`] = `
[
  {
    "json-parse": "false",
    "retention-days": "14",
    "source_partition": "1",
    "source_topic": "test",
    "team_id": "TEAM_ID",
    "token": "<REPLACED-UUID-1>",
  },
  {
    "json-parse": "false",
    "retention-days": "14",
    "source_partition": "1",
    "source_topic": "test",
    "team_id": "TEAM_ID",
    "token": "<REPLACED-UUID-1>",
  },
  {
    "json-parse": "false",
    "retention-days": "14",
    "source_partition": "1",
    "source_topic": "test",
    "team_id": "TEAM_ID",
    "token": "<REPLACED-UUID-1>",
  },
]
`;

exports[`LogsIngestionConsumer message parsing and validation should overwrite existing headers 1`] = `
[
  {
    "json-parse": "false",
    "retention-days": "14",
    "source_partition": "1",
    "source_topic": "test",
    "team_id": "TEAM_ID",
    "token": "<REPLACED-UUID-3>",
  },
]
`;

exports[`LogsIngestionConsumer message parsing and validation should preserve kafka message headers 1`] = `
[
  {
    "json-parse": "false",
    "myHeader": "hello",
    "retention-days": "14",
    "source_partition": "1",
    "source_topic": "test",
    "team_id": "TEAM_ID",
    "token": "<REPLACED-UUID-2>",
  },
]
`;