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
* 'master' of https://github.com/getsentry/sentry-docs:
docs(dev-infra): Update development environment docs (#14585)
add Sevvy integration docs (#14601)
feat(dart/flutter): improve distinction between Logging integration and Structured Logs (#14527)
correcting region storage for symbol and source map metadata (#14600)
Copy file name to clipboardExpand all lines: develop-docs/development-infrastructure/environment/index.mdx
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,12 +34,9 @@ devservices up
34
34
After that, you can start the development server inside the `sentry` folder:
35
35
36
36
```shell
37
-
sentry devserver --workers
37
+
devservices serve
38
38
```
39
39
40
-
If you are developing for aesthetics only and do not rely on the async workers, you can omit the `--workers` flag in order
41
-
to use fewer system resources.
42
-
43
40
Access it at [http://dev.getsentry.net:8000](http://dev.getsentry.net:8000) (you'll have to wait a bit for webpack to finish).
44
41
A superuser account should have been created for you during bootstrap - `[email protected]` with password `admin`.
45
42
You can create other users with `sentry createuser`.
@@ -86,8 +83,8 @@ After the server is running we can visit the dev server using `https` at port `:
86
83
<Linkto="/relay/">Relay</Link> and the ingest workers are not started by default. Follow the instructions below to start them so you can send events to your dev environment Sentry instance:
87
84
88
85
- Set `SENTRY_USE_RELAY = True` in `~/.sentry/sentry.conf.py`.
89
-
- Run `devservices up` to start the services Relay needs. (like for example Kafka)
90
-
-(Re-)Start your devserver with the `--ingest` flag (e.g. `sentry devserver --workers --ingest`). This will start the Relay container and all related services alongside your devserver.
86
+
- Run `devservices up --mode ingest` to start the services Relay needs. (like for example Kafka)
87
+
- Start your devserver (e.g. `devservices serve`).
91
88
92
89
## Running the Getsentry Development Server
93
90
@@ -108,7 +105,7 @@ devservices up
108
105
After that, you can start the development server inside the `getsentry` folder:
109
106
110
107
```shell
111
-
getsentry devserver --workers
108
+
devservices serve
112
109
```
113
110
114
111
**Note**: You **cannot** have both sentry and getsentry devserver running at the same time.
@@ -123,7 +120,7 @@ by `dev.py` if it exists.
123
120
To enable the ingest workers, follow the steps described <Linkto="#ingestion-pipeline-relay">here</Link> and run
124
121
125
122
```shell
126
-
getsentry devserver --workers --ingest
123
+
devservices serve
127
124
```
128
125
129
126
## Running siloed instances
@@ -134,10 +131,10 @@ The devserver command supports `--silo` option that lets you create siloed insta
description: "Learn about Sentry's Sevvy integration, which helps users debug, fix, and prevent issues, with full-stack context."
6
+
---
7
+
The Sevvy integration connects Sentry with Sevvy, an AI on-call engineer that monitors your production systems, debugs failures, and performs root-cause analysis using rich context from across your stack. When Issues are created or updated in Sentry, the agent enriches the event
8
+
with data from your logs, metrics, source code, databases, docs, runbooks, PRs, deployments, and past incidents, summarizing the root cause and remediation steps.
9
+
10
+
This integration is maintained and supported by Sevvy. or more details, questions, or support feel free to contact [email protected].
11
+
## Install and Configure
12
+
13
+
<Alert>
14
+
15
+
Sentry owner, manager, or admin permissions are required to install this integration.
16
+
17
+
</Alert>
18
+
19
+
1. Navigate to **Settings > Integrations > Sevvy**
20
+
21
+
2. Follow the full [Sevvy installation instructions](https://docs.sevvyai.com/integrations/sentry).
description: "Learn more about the Sentry Logging integration for the Dart SDK."
3
+
description: "Integrate Sentry with the Dart Logging package to capture events, breadcrumbs, and automatically send structured logs to Sentry."
4
4
caseStyle: canonical
5
5
supportLevel: production
6
6
sidebar_order: 3
@@ -9,9 +9,19 @@ platforms:
9
9
- flutter
10
10
---
11
11
12
-
The `sentry_logging` library provides [Logging](https://pub.dev/packages/logging) support for Sentry using the [onRecord property](https://pub.dev/documentation/logging/latest/logging/Logger/onRecord.html). It is able to collect breadcrumbs and capture events. Once this integration is configured, you can use Logging's public API exclusively or in combination to the Sentry's SDK API to capture and enrich events.
12
+
This integration connects Sentry with the popular [Dart logging package](https://pub.dev/packages/logging), providing the following capabilities:
13
13
14
-
The source can be found [on GitHub](https://github.com/getsentry/sentry-dart/tree/main/logging/).
14
+
- If `enableLogs` is set to `true`, Sentry will send your log messages as [Sentry Structured Logs](/platforms/dart/logs/) (new in `9.5.0`)
15
+
- Captures breadcrumbs from your log calls
16
+
- Converts error-level logs into Sentry error events
17
+
- Works with your existing logging code
18
+
19
+
<Alertlevel="info">
20
+
21
+
This page covers the instrumentation of the **Dart Logging package**.
22
+
This integration also supports creating structured logs. However, if you're looking to set up Sentry structured logs in general, visit our [Structured Logs](/platforms/dart/logs/) documentation.
23
+
24
+
</Alert>
15
25
16
26
## Install
17
27
@@ -26,8 +36,7 @@ dependencies:
26
36
27
37
## Configure
28
38
29
-
Configuration should happen as early as possible in your application's lifecycle.
30
-
39
+
Add the `LoggingIntegration` to your `Sentry.init` call:
Learn more about manually capturing an error or message, in our <PlatformLinkto="/usage/">Usage documentation</PlatformLink>.
70
-
71
-
</Alert>
72
-
73
-
To view and resolve the recorded message, log into [sentry.io](https://sentry.io) and open your project. Clicking on the error's title will open a page where you can see detailed information and mark it as resolved.
107
+
### What You'll See in Sentry:
108
+
-**Breadcrumbs**: All three log calls will appear as breadcrumbs on the error event
109
+
-**Error Event**: The `severe` log creates a full error event with stack trace
110
+
-**Structured Logs**: (if `enableLogs` is `true`) Navigate to **Logs** in your Sentry project to see all three entries as searchable structured logs
Copy file name to clipboardExpand all lines: platform-includes/logs/usage/dart.mdx
+26-7Lines changed: 26 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,33 @@ Once the feature is enabled on the SDK and the SDK is initialized, you can send
2
2
3
3
The `logger` namespace exposes six methods that you can use to log messages at different log levels: `trace`, `debug`, `info`, `warning`, `error`, and `fatal`.
4
4
5
-
You can pass additional attributes directly to the logging functions. These properties will be sent to Sentry, and can be searched from within the Logs UI, and even added to the Logs views as a dedicated column.
5
+
Aside from the primary logging methods, we've provided a format text function, `Sentry.logger.fmt`, that you can use to insert properties into to your log entries.
6
+
7
+
These properties will be sent to Sentry, and can be searched from within the Logs UI, and even added to the Logs views as a dedicated column.
8
+
9
+
<Alertlevel="info">
10
+
When using the `fmt` function, you must use the `%s` placeholder for each value you want to insert.
11
+
</Alert>
6
12
7
13
```dart
8
-
Sentry.logger.info("A simple log message");
9
-
Sentry.logger.warn("This is a warning log with attributes.", attributes: {
0 commit comments