[[
  {
    "name": "gemini.request",
    "service": "tests.contrib.google_generativeai",
    "resource": "GenerativeModel.generate_content",
    "trace_id": 0,
    "span_id": 1,
    "parent_id": 0,
    "type": "",
    "error": 1,
    "meta": {
      "_dd.p.dm": "-0",
      "_dd.p.tid": "68715e7800000000",
      "error.message": "400 Invalid API key. Please pass a valid API key.",
      "error.stack": "Traceback (most recent call last):\n  File \"/Users/jacob.simpher/go/src/github.com/DataDog/dd-trace-py/ddtrace/contrib/internal/google_generativeai/patch.py\", line 51, in traced_generate\n    generations = func(*args, **kwargs)\n  File \"/Users/jacob.simpher/go/src/github.com/DataDog/dd-trace-py/.riot/venv_py31013_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_pytest-asyncio_google-generativeai~070_pillow_google-ai-generativelanguage_vertexai/lib/python3.10/site-packages/google/generativeai/generative_models.py\", line 331, in generate_content\n    response = self._client.generate_content(\n  File \"/Users/jacob.simpher/go/src/github.com/DataDog/dd-trace-py/.riot/venv_py31013_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_pytest-asyncio_google-generativeai~070_pillow_google-ai-generativelanguage_vertexai/lib/python3.10/site-packages/mock/mock.py\", line 1190, in __call__\n    return _mock_self._mock_call(*args, **kwargs)\n  File \"/Users/jacob.simpher/go/src/github.com/DataDog/dd-trace-py/.riot/venv_py31013_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_pytest-asyncio_google-generativeai~070_pillow_google-ai-generativelanguage_vertexai/lib/python3.10/site-packages/mock/mock.py\", line 1194, in _mock_call\n    return _mock_self._execute_mock_call(*args, **kwargs)\n  File \"/Users/jacob.simpher/go/src/github.com/DataDog/dd-trace-py/.riot/venv_py31013_mock_pytest_pytest-mock_coverage_pytest-cov_opentracing_hypothesis6451_pytest-asyncio_google-generativeai~070_pillow_google-ai-generativelanguage_vertexai/lib/python3.10/site-packages/mock/mock.py\", line 1251, in _execute_mock_call\n    raise effect\ngoogle.api_core.exceptions.InvalidArgument: 400 Invalid API key. Please pass a valid API key.\n",
      "error.type": "google.api_core.exceptions.InvalidArgument",
      "google_generativeai.request.model": "gemini-1.5-flash",
      "google_generativeai.request.provider": "google",
      "language": "python",
      "runtime-id": "e72fd406a9a04657a973cf959e2935f5"
    },
    "metrics": {
      "_dd.measured": 1,
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 66831
    },
    "duration": 1902000,
    "start": 1752260216124732000
  }]]
