Title: Consola logging add object as extra data/context · Issue #18593 · getsentry/sentry-javascript · GitHub
Open Graph Title: Consola logging add object as extra data/context · Issue #18593 · getsentry/sentry-javascript
X Title: Consola logging add object as extra data/context · Issue #18593 · getsentry/sentry-javascript
Description: Problem Statement When logging with Consola, it'd be nice to be able to pass an object and have Sentry treat it as (searchable) context/data, instead of serializing it into the main log message. Solution Brainstorm This should be very ea...
Open Graph Description: Problem Statement When logging with Consola, it'd be nice to be able to pass an object and have Sentry treat it as (searchable) context/data, instead of serializing it into the main log message. So...
X Description: Problem Statement When logging with Consola, it'd be nice to be able to pass an object and have Sentry treat it as (searchable) context/data, instead of serializing it into the main log message...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/18593
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consola logging add object as extra data/context","articleBody":"### Problem Statement\n\nWhen logging with Consola, it'd be nice to be able to pass an object and have Sentry treat it as (searchable) context/data, instead of serializing it into the main log message.\n\n### Solution Brainstorm\n\nThis should be very easy to implement since Consola exposes an `args` array on a `logObj` which contains all the parameters passed into a log call. Looping through the elements in the array, taking out all objects and passing them as context. \n\nhttps://github.com/getsentry/sentry-javascript/blob/develop/packages/core/src/integrations/consola.ts#L215\n\n### Additional Context\n\n_No response_\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/luuktap","@type":"Person","name":"luuktap"},"datePublished":"2025-12-21T10:39:04Z","url":"https://github.com/getsentry/sentry-javascript/issues/18593"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:105ad13c-e0cb-aa42-36fe-9d4b301e1acc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D916:476F2:43536A:5A3CEC:6B04A136 |
| html-safe-nonce | 8093e4fbfb0731df8bff67941b051696c304af2e013005e24138d9b09f2d4fd7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTE2OjQ3NkYyOjQzNTM2QTo1QTNDRUM6NkIwNEExMzYiLCJ2aXNpdG9yX2lkIjoiNDYxMDc0NTg0NzU4Njc5MTczNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ea1fe64b5a6c6e353df8d92dc4225754917481972afb6f06ded6c27dd47ef8b1 |
| hovercard-subject-tag | issue:3751013167 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/18593/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a62050304488d8ab1de717d4bfb05b9d86d0a4265d00b7084d661c0b7f1bc3c4/getsentry/sentry-javascript/issues/18593 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a62050304488d8ab1de717d4bfb05b9d86d0a4265d00b7084d661c0b7f1bc3c4/getsentry/sentry-javascript/issues/18593 |
| og:image:alt | Problem Statement When logging with Consola, it'd be nice to be able to pass an object and have Sentry treat it as (searchable) context/data, instead of serializing it into the main log message. So... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | luuktap |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width