Skip to content

[CRITICAL] Python SDK: source_file/line_number (snake_case) silently dropped by server #55

@Divkix

Description

@Divkix

Severity: Critical

Files: sdks/python/src/logwell/client.py:114-116, sdks/python/src/logwell/types.py:36-37, src/lib/server/utils/simple-ingest.ts:121-123

Impact

Source location data from the Python SDK never reaches the database. Server reads entry.sourceFile / entry.lineNumber (camelCase), but Python sends source_file / line_number (snake_case). Both values silently become null.

Root Cause

Python dict keys use snake_case for JSON serialization. Server checks camelCase keys. Both undefined → null. TS and Go SDKs send camelCase correctly.

Fix

Rename Python keys to sourceFile / lineNumber.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions