Skip to content

Sentry log aggregation throws exception if log data is a simple array with numeric indices #1881

@danatemple

Description

@danatemple

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Log::info("Test log", [
   'abc', 'def'
]);

Expected Result

The following log line:

Test log ["abcv","def"]

Actual Result

Sentry\Logs\Log::setAttribute(): Argument getsentry/sentry#1 ($key) must be of type string, int given, called in /home/dan/www/scarlet1/data-dynamo/vendor/sentry/sentry/src/Logs
/LogsAggregator.php on line 118

Product Area

Insights

Link

No response

DSN

No response

Version

No response

Metadata

Metadata

Assignees

Labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions