You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: develop-docs/api-server/application-domains/database-migrations/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -287,7 +287,7 @@ Extra care is needed here if the table is referenced as a foreign key in other t
287
287
288
288
- Make a pull request to remove all uses of the model in the codebase in a separate pull request. This mostly helps with code cleanliness. This should be merged ahead of the migration pull requests, but we don't need to worry about whether it is deployed first.
289
289
- Make another pull request to:
290
-
- Remove any database level foreign key constraints from this table to other tables by setting `db_constraint=False` on the columns.
290
+
- Remove any database level foreign key constraints from this table to other tables by setting `db_constraint=False` on the columns. If it's a hybrid cloud foreign key, set `null=True` instead.
291
291
- Remove the model and in the generated migration use `SafeDeleteModel(..., deletion_action=DeletionAction.MOVE_TO_PENDING)` to replace `DeleteModel(...)`. This only marks the state for the model as removed.
292
292
- Deploy. It's important that all previous pull requests are in production before we remove the actual table.
293
293
- Make a pull request that creates a new migration that has the same `SafeDeleteModel` operation as before, but set `deletion_action=DeletionAction.DELETE` instead. This deletes the actual table from Postgres.
Copy file name to clipboardExpand all lines: develop-docs/engineering-practices/rust.mdx
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,26 +50,26 @@ During migration you may need normal functions which return futures, for their s
50
50
51
51
### Async Traits
52
52
53
-
In **traits**you can not yet use `async fn` ([see this blog post](https://smallcultfollowing.com/babysteps/blog/2019/10/26/async-fn-in-traits-are-hard/)).
54
-
In this case, functions should return `-> Pin<Box<dyn Future<Output = ...> + Send>>`:
53
+
Support for async in **traits**has [landed in Rust](https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html)
Copy file name to clipboardExpand all lines: develop-docs/sdk/data-model/event-payloads/contexts.mdx
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -261,14 +261,17 @@ To summarize:
261
261
262
262
: _Optional_. An unprocessed description string obtained by the operating system. For some well-known runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are not explicitly given.
263
263
264
-
`distribution`
264
+
`distribution_name`
265
265
266
-
: _Optional_. An object that provides meta-data for Linux distributions. The values correspond to entries from the [`/etc/os-release`](https://www.freedesktop.org/software/systemd/man/latest/os-release.html#Options) configuration. Contains the following keys:
266
+
: _Optional_. A stable name for each distribution. This maps to `ID` in [`/etc/os-release`](https://www.freedesktop.org/software/systemd/man/latest/os-release.html#ID=) (examples: `ubuntu`, `rhel`, `alpine`; a full list of tested identifiers is available in the [Native SDK repository](https://github.com/getsentry/sentry-native/blob/master/tests/fixtures/os_releases/distribution_names.txt))
267
267
268
+
`distribution_version`
268
269
269
-
-`name`: A stable name for each distribution. This maps to `ID` in `/etc/os-release` (examples: `ubuntu`, `rhel`, `alpine`; a full list of tested identifiers is available in the [Native SDK repository](https://github.com/getsentry/sentry-native/blob/feat/add_linux_distros_to_os_context/tests/fixtures/os_releases/distribution_names.txt).
270
-
-`version`: _Optional_. Typically identifies at least the major release version number. This maps to `VERSION_ID` in `/etc/os-release`. Distributions with rolling releases only, will not provide a version.
271
-
-`pretty_name`: _Optional_. Typically provides the full name, full version, and release alias. This maps to `PRETTY_NAME` in `/etc/os-release` (examples: `Ubuntu 22.04.4 LTS`, `Raspian GNU/Linux 10 (buster)`).
270
+
: _Optional_. Typically identifies at least the major release version number. This maps to `VERSION_ID` in [`/etc/os-release`](https://www.freedesktop.org/software/systemd/man/latest/os-release.html#VERSION_ID=). Distributions with rolling releases only, will not provide a version.
271
+
272
+
`distribution_pretty_name`
273
+
274
+
: _Optional_. Typically provides the full name, full version, and release alias. This maps to `PRETTY_NAME` in [`/etc/os-release`](https://www.freedesktop.org/software/systemd/man/latest/os-release.html#PRETTY_NAME=) (examples: `Ubuntu 22.04.4 LTS`, `Raspian GNU/Linux 10 (buster)`).
272
275
273
276
### Example OS Context
274
277
@@ -293,10 +296,9 @@ The OS Context for the 3 major OSs should look like this:
293
296
"type": "os",
294
297
"name": "Linux",
295
298
"version": "6.1.82(99.168.amzn2023.x86_64)",
296
-
"distribution": {
297
-
"name": "amzn",
298
-
"version": "2023",
299
-
"pretty_name": "Amazon Linux 2023.4.20240401"
299
+
"distribution_name": "amzn",
300
+
"distribution_version": "2023",
301
+
"distribution_pretty_name": "Amazon Linux 2023.4.20240401"
300
302
}
301
303
}
302
304
}
@@ -628,7 +630,7 @@ Additional information that allows Sentry to connect multiple transactions, span
628
630
629
631
`span_id`
630
632
631
-
: _Required_. The ID of the span.
633
+
: _Required_. The ID of the span or transaction. For non-transaction events, and if performance monitoring is disabled, it may still be desired to attach events to a trace via a trace ID. In these cases, you still need to provide a span ID. This span ID can effectively be entirely random and doesn't need to relate to an actual span, however, it is recommended to consider using the same span ID for multiple events within the same unit-of-execution (e.g. a request). [See the TwP docs](/sdk/telemetry/traces/tracing-without-performance/#attaching-trace-data-to-events-and-envelopes) for more details.
Download and save the [default ruleset template](/json/Default_ruleset.json) as a JSON file.
148
+
149
+
Visit the ruleset setting page of your repository: `https://github.com/getsentry/REPONAME_HERE/settings/rules`, click on the green **New ruleset** button, choose **Import a ruleset**, and select the JSON file you just downloaded. You can tweak the ruleset settings, but please don't remove the App in the Bypass List.
150
+
140
151
## Making Your First Release!
141
152
142
153
Navigate to the actions tab of your repository, locate the release workflow,
description: Learn how to manage the amount of data you send and are billed for in Sentry by adjusting the sample rates of various Sentry products including Traces and Session Replays.
5
+
---
6
+
7
+
## Overview
8
+
9
+
### What Is a Sample Rate?
10
+
11
+
Adding Sentry to your app gives you a lot of valuable information about errors and performance you wouldn't otherwise get. And lots of information is good -- as long as it's the right information, at a reasonable volume. You can use sample rates to capture only a specified percentage of events like errors and traces.
12
+
13
+
14
+
### Why Not Capture All Events?
15
+
16
+
We recommend sampling your transactions for two reasons:
17
+
18
+
1. Capturing a single trace involves minimal overhead, but capturing traces for every page load or API request may add an undesirable load to your system.
19
+
20
+
1. Enabling sampling allows you to better manage the number of events sent to Sentry, so you can tailor your volume to your organization's needs and budget.
21
+
22
+
Choose a sampling rate that balances data accuracy with performance and storage concerns. You should aim to collect enough data to get meaningful insights without overloading resources. If unsure, start with a low rate and gradually increase it as you understand your traffic patterns better.
23
+
24
+
## Sampling Rate Options
25
+
26
+
<Note>
27
+
Some of the options below aren't available in every SDK; check out our platform-specific docs for more info.
28
+
</Note>
29
+
30
+
### Error Events
31
+
32
+
-**SampleRate** - Configures the sample rate for error events, in the range of 0.0 to 1.0. The default is 1.0, which means that 100% of error events will be sent. If set to 0.1, only 10% of error events will be sent. Events are picked randomly.
33
+
34
+
### Tracing
35
+
36
+
-**tracesSampleRate** - A number between 0 and 1, controlling the percentage chance a given transaction will be sent to Sentry. (0 represents 0% while 1 represents 100%.) Applies equally to all transactions created in the app. Either this or `tracesSampler` must be defined to enable tracing.
37
+
38
+
-**tracesSampler** - A function responsible for determining the percentage chance a given transaction will be sent to Sentry. It will automatically be passed information about the transaction and the context in which it's being created, and must return a number between 0 (0% chance of being sent) and 1 (100% chance of being sent). Can also be used for filtering transactions, by returning 0 for those that are unwanted. Either this or `tracesSampleRate` must be defined to enable tracing.
39
+
40
+
Learn more about [tracing](/product/tracing/) in Sentry.
41
+
### Session Replay
42
+
43
+
-**replaysSessionSampleRate** - The sample rate for replays that begin recording immediately and last the entirety of the user's session. 1.0 collects all replays, and 0 collects none.
44
+
45
+
-**replaysOnErrorSampleRate** - The sample rate for replays that are recorded when an error happens. This type of replay will record up to a minute of events prior to the error and continue recording until the session ends. 1.0 captures all sessions with an error, and 0 captures none.
46
+
47
+
Learn more about [session replay](/product/explore/session-replay/) in Sentry.
Copy file name to clipboardExpand all lines: docs/concepts/search/searchable-properties/events.mdx
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -472,6 +472,18 @@ The independent kernel version string. This is typically the entire output of th
472
472
473
473
-**Type:** string
474
474
475
+
### `os.distribution_name`
476
+
477
+
The Linux distribution name. This maps to `ID` in [`/etc/os-release/`](https://www.freedesktop.org/software/systemd/man/latest/os-release.html).
478
+
479
+
-**Type:** string
480
+
481
+
### `os.distribution_version`
482
+
483
+
The Linux distribution version. This maps to `VERSION_ID` in [`/etc/os-release/`](https://www.freedesktop.org/software/systemd/man/latest/os-release.html).
484
+
485
+
-**Type:** string
486
+
475
487
### `percentile(field,level)`
476
488
477
489
Returns results with an approximate percentile of the field to the level. The level can be between `0` and `1`. For example, if you wanted to find the 50th percentile of transaction durations, you would enter `percentile(transaction.duration, 0.5)`.
Copy file name to clipboardExpand all lines: docs/concepts/search/searchable-properties/issues.mdx
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -292,6 +292,18 @@ The independent kernel version string. This is typically the entire output of th
292
292
293
293
-**Type:** string
294
294
295
+
### `os.distribution_name`
296
+
297
+
The Linux distribution name. This maps to `ID` in [`/etc/os-release/`](https://www.freedesktop.org/software/systemd/man/latest/os-release.html).
298
+
299
+
-**Type:** string
300
+
301
+
### `os.distribution_version`
302
+
303
+
The Linux distribution version. This maps to `VERSION_ID` in [`/etc/os-release/`](https://www.freedesktop.org/software/systemd/man/latest/os-release.html).
Copy file name to clipboardExpand all lines: docs/organization/integrations/feature-flag/launchdarkly/index.mdx
+34-2Lines changed: 34 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,44 @@
1
1
---
2
2
title: LaunchDarkly
3
3
sidebar_order: 1
4
-
description: Learn about Sentry's LaunchDarkly integration. LaunchDarkly enables organizations to use Sentry errors as a metric in their LaunchDarkly experiments.
4
+
description: Learn about Sentry's LaunchDarkly integrations.
5
5
---
6
6
7
+
## Evaluation Tracking
8
+
9
+
Sentry can track flag evaluations as they happen within your application. Flag evaluations will appear in the "Feature Flag" section of Issue Details page as a table, with "suspect" flag predictions highlighted in yellow. Learn more about how to interact with feature flag insights within the Sentry UI by reading the [Issue Details page documentation](/product/issues/issue-details/#feature-flags).
10
+
11
+
### Set Up Evaluation Tracking
12
+
13
+
To set up evaluation tracking visit one of our supported languages pages:
Sentry can track changes to feature flag definitions and report suspicious feature flag edits.
20
+
21
+
### Set Up Change Tracking
22
+
23
+
Enabling Change Tracking is a three step process. To get started visit the [feature-flags settings page](https://sentry.io/orgredirect/organizations/:orgslug/settings/feature-flags) in a new tab. Then follow the steps listed below.
24
+
25
+
1.**Click the "Add New Provider" button.
26
+
- One webhook secret can be registered per provider type.
27
+
2.**Register the webhook URL**.
28
+
- Copy the provided Sentry webhook URL and paste it into LaunchDarkly within their [webhook integration UI](https://app.launchdarkly.com/settings/integrations/webhooks/new).
29
+
3.**Set the Signing Secret**.
30
+
- In the LaunchDarkly webhook UI check the box that says "Sign this webhook".
31
+
- Copy the signing secret in the revealed input box and paste it into the input box labeled "Secret" in Sentry.
32
+
- Save the secret by clicking "Save Secret" in the Sentry fly out.
33
+
- Save the webhook by clicking "Save Settings" in LaunchDarkly.
34
+
35
+
Once saved Sentry will now accept and authenticate all inbound hooks to your organization's feature flag webhook endpoint.
36
+
37
+
## Metrics Integration
38
+
7
39
This integration is maintained and supported by the company that created it. For more details or questions, feel free to contact [email protected].
0 commit comments