[[
  {
    "name": "openai.request",
    "service": "tests.contrib.openai",
    "resource": "createResponse",
    "trace_id": 0,
    "span_id": 1,
    "parent_id": 0,
    "type": "",
    "error": 1,
    "meta": {
      "_dd.p.dm": "-0",
      "_dd.p.tid": "68757a7f00000000",
      "component": "openai",
      "error.message": "Error code: 400 - {'error': {'message': \"The requested model 'invalid-model' does not exist.\", 'type': 'invalid_request_error', 'param': 'model', 'code': 'model_not_found'}}",
      "error.stack": "Traceback (most recent call last):\n  File \"/Users/jacob.simpher/go/src/github.com/DataDog/dd-trace-py/ddtrace/contrib/internal/openai/patch.py\", line 264, in patched_endpoint\n    resp = 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_vcrpy_urllib3~126_pytest-asyncio0211_pytest-randomly_openai_tiktoken_pillow/lib/python3.10/site-packages/openai/resources/responses/responses.py\", line 700, in create\n    return self._post(\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_vcrpy_urllib3~126_pytest-asyncio0211_pytest-randomly_openai_tiktoken_pillow/lib/python3.10/site-packages/openai/_base_client.py\", line 1249, in post\n    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))\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_vcrpy_urllib3~126_pytest-asyncio0211_pytest-randomly_openai_tiktoken_pillow/lib/python3.10/site-packages/openai/_base_client.py\", line 1037, in request\n    raise self._make_status_error_from_response(err.response) from None\nopenai.BadRequestError: Error code: 400 - {'error': {'message': \"The requested model 'invalid-model' does not exist.\", 'type': 'invalid_request_error', 'param': 'model', 'code': 'model_not_found'}}\n",
      "error.type": "openai.BadRequestError",
      "language": "python",
      "openai.request.endpoint": "/v1/responses",
      "openai.request.method": "POST",
      "openai.request.model": "invalid-model",
      "openai.request.provider": "OpenAI",
      "runtime-id": "453a86f9c95343e790ed4376c3cac275"
    },
    "metrics": {
      "_dd.measured": 1,
      "_dd.top_level": 1,
      "_dd.tracer_kr": 1.0,
      "_sampling_priority_v1": 1,
      "process_id": 89248
    },
    "duration": 3697000,
    "start": 1752529535129340000
  }]]
