Hello, I just started playing with Signoz in hope ...
# support
h
Hello, I just started playing with Signoz in hope to integrate this in my production cluster. I setup signoz using helm and it sort of working, and getting traces. I have python FastAPI application and using Auto Instrumentation using OpenTelementry. For logs I have to setup some more env variables, it's working good but in case of error in the application it's sending logs "Exception while exporting logs." Here is the detailed Json of the log:
Copy code
{
  "body": "Exception while exporting logs.",
  "id": "2pYiPJrrMQqLBSk6HKGLuvmi0CU",
  "timestamp": "2024-11-30T06:49:43.881461248Z",
  "attributes": {
    "otelTraceSampled": false,
    "exception.message": "Invalid type <class 'botocore.exceptions.ClientError'> of value An error occurred (404) when calling the HeadObject operation: Not Found",
    "exception.stacktrace": "Traceback (most recent call last):\n  File \"/usr/local/lib/python3.11/site-packages/opentelemetry/sdk/_logs/_internal/export/__init__.py\", line 312, in _export_batch\n    self._exporter.export(self._log_records[:idx])  # type: ignore\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/opentelemetry/exporter/otlp/proto/grpc/_log_exporter/__init__.py\", line 108, in export\n    return self._export(batch)\n           ^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/opentelemetry/exporter/otlp/proto/grpc/exporter.py\", line 263, in _export\n    request=self._translate_data(data),\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/opentelemetry/exporter/otlp/proto/grpc/_log_exporter/__init__.py\", line 105, in _translate_data\n    return encode_logs(data)\n           ^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/opentelemetry/exporter/otlp/proto/common/_internal/_log_encoder/__init__.py\", line 38, in encode_logs\n    return ExportLogsServiceRequest(resource_logs=_encode_resource_logs(batch))\n                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/opentelemetry/exporter/otlp/proto/common/_internal/_log_encoder/__init__.py\", line 61, in _encode_resource_logs\n    pb2_log = _encode_log(sdk_log)\n              ^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/opentelemetry/exporter/otlp/proto/common/_internal/_log_encoder/__init__.py\", line 47, in _encode_log\n    body=_encode_value(log_data.log_record.body),\n         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/local/lib/python3.11/site-packages/opentelemetry/exporter/otlp/proto/common/_internal/__init__.py\", line 81, in _encode_value\n    raise Exception(f\"Invalid type {type(value)} of value {value}\")\nException: Invalid type <class 'botocore.exceptions.ClientError'> of value An error occurred (404) when calling the HeadObject operation: Not Found\n",
    "exception.type": "Exception",
    "otelServiceName": "interview-core-process-video",
    "otelSpanID": "0",
    "otelTraceID": "0"
  },
  "resources": {
    "service.name": "interview-core-process-video",
    "telemetry.auto.version": "0.43b0",
    "telemetry.sdk.language": "python",
    "telemetry.sdk.name": "opentelemetry",
    "telemetry.sdk.version": "1.22.0"
  },
  "scope": {},
  "severity_text": "ERROR",
  "severity_number": 17,
  "scope_name": "opentelemetry.sdk._logs._internal",
  "scope_version": "",
  "span_id": "",
  "trace_flags": 0,
  "trace_id": ""
}
I dont know what's the issue, even though it's catching the main error but not displaying it correctly. Someone please help me get out of this!