[[
  {
    "name": "kafka.consume",
    "service": "kafka",
    "resource": "kafka.consume",
    "trace_id": 0,
    "span_id": 1,
    "parent_id": 0,
    "type": "worker",
    "error": 1,
    "meta": {
      "_dd.base_service": "tests.contrib.kafka",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "65df90df00000000",
      "component": "kafka",
      "error.message": "'invalid_args' is an invalid keyword argument for this function",
      "error.stack": "Traceback (most recent call last):\n  File \"/Users/munirabdinur/go/src/github.com/DataDog/dd-trace-py/ddtrace/contrib/kafka/patch.py\", line 222, in traced_poll_or_consume\n    raise err\n  File \"/Users/munirabdinur/go/src/github.com/DataDog/dd-trace-py/ddtrace/contrib/kafka/patch.py\", line 218, in traced_poll_or_consume\n    result = func(*args, **kwargs)\nTypeError: 'invalid_args' is an invalid keyword argument for this function\n",
      "error.type": "builtins.TypeError",
      "kafka.group_id": "test_group",
      "kafka.received_message": "False",
      "language": "python",
      "messaging.system": "kafka",
      "runtime-id": "60490ef14dac4fccae1050b4a5837a51",
      "span.kind": "consumer"
    },
    "metrics": {
      "_dd.measured": 1,
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 58905
    },
    "duration": 1366041000,
    "start": 1709150430267359000
  }],
[
  {
    "name": "kafka.produce",
    "service": "kafka",
    "resource": "kafka.produce",
    "trace_id": 1,
    "span_id": 1,
    "parent_id": 0,
    "type": "worker",
    "error": 0,
    "meta": {
      "_dd.base_service": "tests.contrib.kafka",
      "_dd.p.dm": "-0",
      "_dd.p.tid": "65df90dd00000000",
      "component": "kafka",
      "kafka.cluster_id": "5L6g3nShT-eMCtK--X86sw",
      "kafka.message_key": "test_key",
      "kafka.tombstone": "False",
      "kafka.topic": "test_commit_with_consume_with_error_False",
      "language": "python",
      "messaging.kafka.bootstrap.servers": "localhost:29092",
      "messaging.system": "kafka",
      "pathway.hash": "8223615727003867653",
      "runtime-id": "60490ef14dac4fccae1050b4a5837a51",
      "span.kind": "producer"
    },
    "metrics": {
      "_dd.measured": 1,
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "kafka.partition": -1,
      "process_id": 58905
    },
    "duration": 542000,
    "start": 1709150429264547000
  }]]
