Skip to content

Commit

Permalink
feat(metrics_extraction): Add few more device supported fields (#58582)
Browse files Browse the repository at this point in the history
Adds more fields to the mapping for on-demand metric rules. Now that
getsentry/relay#2607 got merged we need to
update the list of supported fields.

Fixes #56929
  • Loading branch information
armenzg authored Oct 23, 2023
1 parent 0f8b8db commit 838138b
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/sentry/snuba/metrics/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,32 @@
"geo.subdivision": "user.geo.subdivision",
"http.method": "request.method",
# Subset of context fields
"device.name": "contexts.device.name",
"device.arch": "contexts.device.arch",
"device.battery_level": "contexts.device.battery_level",
"device.brand": "contexts.device.brand",
"device.charging": "contexts.device.charging",
"device.family": "contexts.device.family",
"device.locale": "contexts.device.locale",
"device.name": "contexts.device.name",
"device.online": "contexts.device.online",
"device.orientation": "contexts.device.orientation",
"device.screen_density": "contexts.device.screen_density",
"device.screen_dpi": "contexts.device.screen_dpi",
"device.screen_height_pixels": "contexts.device.screen_height_pixels",
"device.screen_width_pixels": "contexts.device.screen_width_pixels",
"device.simulator": "contexts.device.simulator",
"device.uuid": "contexts.device.uuid",
"os.name": "contexts.os.name",
"os.build": "contexts.os.build",
"os.kernel_version": "contexts.os.kernel_version",
"os.version": "contexts.os.version",
"platform.name": "contexts.platform.name",
"browser.name": "contexts.browser.name",
"transaction.op": "contexts.trace.op",
"transaction.status": "contexts.trace.status",
"http.status_code": "contexts.response.status_code",
"sdk.name": "contexts.sdk.name",
"sdk.version": "contexts.sdk.version",
# Computed fields
"transaction.duration": "duration",
"release.build": "release.build",
Expand Down

0 comments on commit 838138b

Please # to comment.