Browse Source

chore(relay): Bump version to get transaction_indexed [INGEST-1674] (#40499)

Bump version of `sentry-relay` to get
`DataCategory.TRANSACTION_INDEXED`. This data category will represent
transactions that are actually stored (as opposed to transactions that
are dropped by dynamic sampling).

For more information, see [this Notion
doc](https://www.notion.so/sentry/Dynamic-Sampling-Packaging-v3-ec32aaeb6c054fe6930a8e6f519f634f#d69f3cea151c4c288917f45756708f3c).

Requires https://github.com/getsentry/publish/issues/1507.

Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Joris Bayer 2 years ago
parent
commit
0313263023

+ 1 - 1
requirements-base.txt

@@ -55,7 +55,7 @@ rfc3339-validator>=0.1.2
 rfc3986-validator>=0.1.1
 # [end] jsonschema format validators
 sentry-arroyo>=1.0.7
-sentry-relay>=0.8.13
+sentry-relay>=0.8.15
 sentry-sdk>=1.10.1
 snuba-sdk>=1.0.1
 simplejson>=3.17.6

+ 1 - 1
requirements-dev-frozen.txt

@@ -148,7 +148,7 @@ rsa==4.8
 s3transfer==0.5.2
 selenium==4.3.0
 sentry-arroyo==1.0.7
-sentry-relay==0.8.13
+sentry-relay==0.8.15
 sentry-sdk==1.10.1
 simplejson==3.17.6
 six==1.16.0

+ 1 - 1
requirements-frozen.txt

@@ -99,7 +99,7 @@ rsa==4.8
 s3transfer==0.5.2
 selenium==4.3.0
 sentry-arroyo==1.0.7
-sentry-relay==0.8.13
+sentry-relay==0.8.15
 sentry-sdk==1.10.1
 simplejson==3.17.6
 six==1.16.0

+ 18 - 7
src/sentry/data/samples/transaction.json

@@ -39,7 +39,7 @@
       "values": [
          {
             "category": "query",
-            "timestamp":1562681591.0,
+            "timestamp": 1562681591.0,
             "message": "SELECT \"countries\".\"id\", \"countries\".\"name\", \"countries\".\"continent\", \"countries\".\"region\", \"countries\".\"surface_area\", \"coun...'CAN'",
             "type": "default",
             "level": "info"
@@ -130,27 +130,33 @@
    },
    "spans": [
       {
-         "same_process_as_parent":true,
+         "same_process_as_parent": true,
          "description": "django.contrib.messages.middleware.MessageMiddleware.process_request",
          "tags": {
-            "error":false
+            "error": false
          },
          "parent_span_id": "babaae0d4b7512d9",
          "trace_id": "a7d67cf796774551a95be6543cacd459",
          "op": "django.middleware",
-         "data": {"duration": 0.02, "offset": 0.02},
+         "data": {
+            "duration": 0.02,
+            "offset": 0.02
+         },
          "span_id": "c048b4fffdc4279d"
       },
       {
-         "same_process_as_parent":true,
+         "same_process_as_parent": true,
          "description": "Django: SELECT \"countries\".\"id\", \"countries\".\"name\", \"countries\".\"continent\", \"countries\".\"region\", \"countries\".\"surface_area\", \"coun...'CAN'",
          "tags": {
-            "error":false
+            "error": false
          },
          "parent_span_id": "c048b4fffdc4279d",
          "trace_id": "a7d67cf796774551a95be6543cacd459",
          "op": "db",
-         "data": {"duration": 0.100, "offset": 1.0},
+         "data": {
+            "duration": 0.100,
+            "offset": 1.0
+         },
          "span_id": "d047a3a8edc3276a"
       }
    ],
@@ -161,18 +167,23 @@
    },
    "measurements": {
       "fp": {
+         "unit": "millisecond",
          "value": 2258.060000000114
       },
       "fcp": {
+         "unit": "millisecond",
          "value": 2258.060000000114
       },
       "lcp": {
+         "unit": "millisecond",
          "value": 2807.335
       },
       "fid": {
+         "unit": "millisecond",
          "value": 3.4900000027846545
       },
       "cls": {
+         "unit": "none",
          "value": 0.0382
       }
    },

+ 2 - 1
src/sentry/utils/samples.py

@@ -234,7 +234,8 @@ def load_data(
             for key, entry in measurements.items():
                 if key in ["fp", "fcp", "lcp", "fid"]:
                     measurement_markers[f"mark.{key}"] = {
-                        "value": round(data["start_timestamp"] + entry["value"] / 1000, 3)
+                        "unit": "none",
+                        "value": round(data["start_timestamp"] + entry["value"] / 1000, 3),
                     }
             measurements.update(measurement_markers)