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.

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

exports[`HogTransformer transformEvent should execute multiple transformations and produce messages 1`] = `
[
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_app_metrics2_test",
    "value": {
      "app_source": "hog_function",
      "app_source_id": "<REPLACED-UUID-0>",
      "count": 1,
      "instance_id": "",
      "metric_kind": "success",
      "metric_name": "succeeded",
      "team_id": "<REPLACED-TEAM-ID>",
      "timestamp": "2025-01-01 00:00:00.000",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_app_metrics2_test",
    "value": {
      "app_source": "hog_function",
      "app_source_id": "<REPLACED-UUID-1>",
      "count": 1,
      "instance_id": "",
      "metric_kind": "success",
      "metric_name": "succeeded",
      "team_id": "<REPLACED-TEAM-ID>",
      "timestamp": "2025-01-01 00:00:00.000",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "clickhouse_app_metrics2_test",
    "value": {
      "app_source": "hog_function",
      "app_source_id": "<REPLACED-UUID-2>",
      "count": 1,
      "instance_id": "",
      "metric_kind": "success",
      "metric_name": "succeeded",
      "team_id": "<REPLACED-TEAM-ID>",
      "timestamp": "2025-01-01 00:00:00.000",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "log_entries_test",
    "value": {
      "instance_id": "<REPLACED-UUID-3>",
      "level": "info",
      "log_source": "hog_function",
      "log_source_id": "<REPLACED-UUID-0>",
      "message": "geoip location data for ip: [REPLACED]",
      "team_id": "<REPLACED-TEAM-ID>",
      "timestamp": "2025-01-01 00:00:00.000",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "log_entries_test",
    "value": {
      "instance_id": "<REPLACED-UUID-3>",
      "level": "debug",
      "log_source": "hog_function",
      "log_source_id": "<REPLACED-UUID-0>",
      "message": "Function completed in [REPLACED]",
      "team_id": "<REPLACED-TEAM-ID>",
      "timestamp": "2025-01-01 00:00:00.001",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "log_entries_test",
    "value": {
      "instance_id": "<REPLACED-UUID-4>",
      "level": "debug",
      "log_source": "hog_function",
      "log_source_id": "<REPLACED-UUID-1>",
      "message": "Function completed in [REPLACED]",
      "team_id": "<REPLACED-TEAM-ID>",
      "timestamp": "2025-01-01 00:00:00.000",
    },
  },
  {
    "headers": undefined,
    "key": null,
    "topic": "log_entries_test",
    "value": {
      "instance_id": "<REPLACED-UUID-5>",
      "level": "debug",
      "log_source": "hog_function",
      "log_source_id": "<REPLACED-UUID-2>",
      "message": "Function completed in [REPLACED]",
      "team_id": "<REPLACED-TEAM-ID>",
      "timestamp": "2025-01-01 00:00:00.000",
    },
  },
]
`;