Skip to content

Commit 2f99929

Browse files
Reorder Default Attributes section in platform logs documentation
Co-authored-by: aprasad <[email protected]>
1 parent eb5d492 commit 2f99929

File tree

10 files changed

+56
-52
lines changed

10 files changed

+56
-52
lines changed

docs/platforms/android/logs/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ With Sentry Structured Logs, you can send text based log information from your a
2525

2626
<PlatformContent includePath="logs/integrations" />
2727

28-
## Default Attributes
29-
30-
<PlatformContent includePath="logs/default-attributes" />
31-
3228
## Options
3329

3430
<PlatformContent includePath="logs/options" />
31+
32+
## Default Attributes
33+
34+
<PlatformContent includePath="logs/default-attributes" />

docs/platforms/dart/guides/flutter/logs/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ With Sentry Structured Logs, you can send text based log information from your a
2121

2222
<PlatformContent includePath="logs/usage" />
2323

24-
## Default Attributes
25-
26-
<PlatformContent includePath="logs/default-attributes" />
27-
2824
## Options
2925

3026
<PlatformContent includePath="logs/options" />
27+
28+
## Default Attributes
29+
30+
<PlatformContent includePath="logs/default-attributes" />

docs/platforms/go/common/logs/index.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,6 @@ slogger.Info("Implementing slog.Logger")
128128

129129
We're actively working on adding more integration support for Logs. Currently, we are looking at adding support for [`zerolog`](https://pkg.go.dev/github.com/rs/zerolog). You can follow this [GitHub issue](https://github.com/getsentry/sentry-go/issues/1015) to track progress.
130130

131-
## Default Attributes
132-
133-
The Go SDK automatically sets several default attributes on all log entries to provide context and improve debugging:
134-
135-
<Include name="logs/default-attributes/core.mdx" />
136-
137-
<Include name="logs/default-attributes/message-template/go.mdx" />
138-
139-
<Include name="logs/default-attributes/user.mdx" />
140-
141-
<Include name="logs/default-attributes/server.mdx" />
142-
143131
## Options
144132

145133
### BeforeSendLog
@@ -169,3 +157,15 @@ if err := sentry.Init(sentry.ClientOptions{
169157
### Debug
170158

171159
If the `Debug` init option is set to true, calls to the `sentry.Logger` will also print to the console with the appropriate log level.
160+
161+
## Default Attributes
162+
163+
The Go SDK automatically sets several default attributes on all log entries to provide context and improve debugging:
164+
165+
<Include name="logs/default-attributes/core.mdx" />
166+
167+
<Include name="logs/default-attributes/message-template/go.mdx" />
168+
169+
<Include name="logs/default-attributes/user.mdx" />
170+
171+
<Include name="logs/default-attributes/server.mdx" />

docs/platforms/java/common/logs/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ With Sentry Structured Logs, you can send text based log information from your a
2525

2626
<PlatformContent includePath="logs/integrations" />
2727

28-
## Default Attributes
29-
30-
<PlatformContent includePath="logs/default-attributes" />
31-
3228
## Options
3329

3430
<PlatformContent includePath="logs/options" />
31+
32+
## Default Attributes
33+
34+
<PlatformContent includePath="logs/default-attributes" />

docs/platforms/javascript/common/logs/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ With Sentry Structured Logs, you can send text based log information from your a
3131

3232
<PlatformContent includePath="logs/integrations" />
3333

34-
## Default Attributes
35-
36-
<PlatformContent includePath="logs/default-attributes" />
37-
3834
## Options
3935

4036
<PlatformContent includePath="logs/options" />
37+
38+
## Default Attributes
39+
40+
<PlatformContent includePath="logs/default-attributes" />

docs/platforms/php/common/logs/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Let us know what you would like to see on GitHub: [Symfony Logs](https://github.
2727

2828
<PlatformContent includePath="logs/usage" />
2929

30-
## Default Attributes
31-
32-
<PlatformContent includePath="logs/default-attributes" />
33-
3430
## Options
3531

3632
<PlatformContent includePath="logs/options" />
33+
34+
## Default Attributes
35+
36+
<PlatformContent includePath="logs/default-attributes" />

docs/platforms/python/logs/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ With Sentry Structured Logs, you can send text based log information from your a
2525

2626
<PlatformContent includePath="logs/integrations" />
2727

28-
## Default Attributes
29-
30-
<PlatformContent includePath="logs/default-attributes" />
31-
3228
## Options
3329

3430
<PlatformContent includePath="logs/options" />
31+
32+
## Default Attributes
33+
34+
<PlatformContent includePath="logs/default-attributes" />

docs/platforms/react-native/logs/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ With Sentry Structured Logs, you can send text based log information from your a
2727

2828
<PlatformContent includePath="logs/integrations" />
2929

30-
## Default Attributes
31-
32-
<PlatformContent includePath="logs/default-attributes" />
33-
3430
## Options
3531

3632
<PlatformContent includePath="logs/options" />
33+
34+
## Default Attributes
35+
36+
<PlatformContent includePath="logs/default-attributes" />

docs/platforms/ruby/logs/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ With Sentry Structured Logs, you can send text based log information from your a
2121

2222
<PlatformContent includePath="logs/usage" />
2323

24+
## Options
25+
26+
<PlatformContent includePath="logs/options" />
27+
2428
## Default Attributes
2529

2630
<PlatformContent includePath="logs/default-attributes" />

docs/platforms/rust/common/logs/index.mdx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -204,18 +204,6 @@ fn main() {
204204
We're always looking to expand integration support for Logs.
205205
If you'd like to see support for additional logging libraries, please open a [new issue](https://github.com/getsentry/sentry-rust/issues/new/choose) with your request.
206206

207-
## Default Attributes
208-
209-
The Rust SDK automatically sets several default attributes on all log entries to provide context and improve debugging:
210-
211-
<Include name="logs/default-attributes/core.mdx" />
212-
213-
<Include name="logs/default-attributes/message-template/rust.mdx" />
214-
215-
<Include name="logs/default-attributes/user.mdx" />
216-
217-
<Include name="logs/default-attributes/server.mdx" />
218-
219207
## Options
220208

221209
### `before_send_log`
@@ -236,3 +224,15 @@ let _guard = sentry::init(("___PUBLIC_DSN___", sentry::ClientOptions {
236224
..Default::default()
237225
}));
238226
```
227+
228+
## Default Attributes
229+
230+
The Rust SDK automatically sets several default attributes on all log entries to provide context and improve debugging:
231+
232+
<Include name="logs/default-attributes/core.mdx" />
233+
234+
<Include name="logs/default-attributes/message-template/rust.mdx" />
235+
236+
<Include name="logs/default-attributes/user.mdx" />
237+
238+
<Include name="logs/default-attributes/server.mdx" />

0 commit comments

Comments
 (0)