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
├── javascript.mdx # Composition for JavaScript SDK
143
+
├── python.mdx # Composition for Python SDK
144
+
├── php.mdx # Composition for PHP SDK
145
+
├── java.mdx # Composition for Java SDK
146
+
├── ruby.mdx # Composition for Ruby SDK
147
+
├── android.mdx # Composition for Android SDK
148
+
├── react-native.mdx # Composition for React Native SDK
149
+
├── dart.mdx # Composition for Dart SDK
150
+
└── rust.mdx # Composition for Rust SDK
151
+
```
152
+
118
153
## Implementation Details
119
154
120
-
1.**Attribute Specificity**: Each SDK only mentions attributes relevant to its platform type. For example:
121
-
- Browser attributes are only mentioned for JavaScript browser SDKs
122
-
- Mobile device attributes are only mentioned for Android, React Native, and Flutter SDKs
123
-
- Server attributes are only mentioned for backend SDKs
124
-
125
-
2.**Message Template Context**: Each SDK's default attributes documentation explains its specific message templating syntax:
126
-
- JavaScript: `logger.fmt` or format strings
127
-
- Python: `{attribute_name}` placeholder syntax
128
-
- PHP/Java/Ruby: Format specifiers like `%s`
129
-
- Go: Format specifiers like `%v`
130
-
- Rust: Format syntax
131
-
132
-
3.**SDK Name Specificity**: Each SDK documents its specific `sentry.sdk.name` value:
133
-
- JavaScript: `sentry.javascript.browser`, `sentry.javascript.node`, etc.
134
-
- Python: `sentry.python`
135
-
- PHP: `sentry.php`
136
-
- Java: `sentry.java`
137
-
- Android: `sentry.java.android`
138
-
- React Native: `sentry.javascript.react-native`
139
-
- Dart: `sentry.dart` or `sentry.dart.flutter`
140
-
- Go: `sentry.go`
141
-
- Ruby: `sentry.ruby`
142
-
- Rust: `sentry.rust`
155
+
1.**Modular Design**: Each attribute type is defined once and reused across relevant SDKs
156
+
2.**Attribute Specificity**: Each SDK only includes attributes relevant to its platform type
157
+
3.**Message Template Context**: Each SDK has its own message template explanation for its specific syntax
158
+
4.**Consistent Formatting**: All shared attributes use the same formatting and descriptions
143
159
144
160
## SDKs Supported
145
161
146
-
All SDKs listed on the [Logs Getting Started page](https://docs.sentry.io/product/explore/logs/getting-started/) now have default attributes documentation:
All SDKs listed on the [Logs Getting Started page](https://docs.sentry.io/product/explore/logs/getting-started/) now have modular default attributes documentation that provides consistent, maintainable information about what attributes will be automatically attached to their log entries.
171
163
172
-
This ensures that developers using any of these SDKs can now understand exactly what default attributes will be automatically attached to their log entries, helping them make better use of Sentry's structured logging capabilities.
164
+
This modular approach makes it easy to maintain consistency across all SDK documentation while allowing for platform-specific customizations where needed.
0 commit comments