@@ -185,30 +185,36 @@ private void captureLog(
185185 }
186186 if (i > 0 ) {
187187 attributes .put (
188- "sentry.message.template" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , message ));
188+ "sentry.message.template" ,
189+ new SentryLogEventAttributeValue (SentryAttributeType .STRING , message ));
189190 }
190191 }
191192
192193 final @ Nullable SdkVersion sdkVersion = scopes .getOptions ().getSdkVersion ();
193194 if (sdkVersion != null ) {
194195 attributes .put (
195- "sentry.sdk.name" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , sdkVersion .getName ()));
196+ "sentry.sdk.name" ,
197+ new SentryLogEventAttributeValue (SentryAttributeType .STRING , sdkVersion .getName ()));
196198 attributes .put (
197199 "sentry.sdk.version" ,
198200 new SentryLogEventAttributeValue (SentryAttributeType .STRING , sdkVersion .getVersion ()));
199201 }
200202
201203 final @ Nullable String environment = scopes .getOptions ().getEnvironment ();
202204 if (environment != null ) {
203- attributes .put ("sentry.environment" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , environment ));
205+ attributes .put (
206+ "sentry.environment" ,
207+ new SentryLogEventAttributeValue (SentryAttributeType .STRING , environment ));
204208 }
205209 final @ Nullable String release = scopes .getOptions ().getRelease ();
206210 if (release != null ) {
207- attributes .put ("sentry.release" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , release ));
211+ attributes .put (
212+ "sentry.release" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , release ));
208213 }
209214
210215 attributes .put (
211- "sentry.trace.parent_span_id" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , spanId ));
216+ "sentry.trace.parent_span_id" ,
217+ new SentryLogEventAttributeValue (SentryAttributeType .STRING , spanId ));
212218
213219 if (Platform .isJvm ()) {
214220 setServerName (attributes );
@@ -225,11 +231,14 @@ private void setServerName(
225231 final @ Nullable String optionsServerName = options .getServerName ();
226232 if (optionsServerName != null ) {
227233 attributes .put (
228- "server.address" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , optionsServerName ));
234+ "server.address" ,
235+ new SentryLogEventAttributeValue (SentryAttributeType .STRING , optionsServerName ));
229236 } else if (options .isAttachServerName ()) {
230237 final @ Nullable String hostname = HostnameCache .getInstance ().getHostname ();
231238 if (hostname != null ) {
232- attributes .put ("server.address" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , hostname ));
239+ attributes .put (
240+ "server.address" ,
241+ new SentryLogEventAttributeValue (SentryAttributeType .STRING , hostname ));
233242 }
234243 }
235244 }
@@ -243,11 +252,13 @@ private void setUser(final @NotNull HashMap<String, SentryLogEventAttributeValue
243252 }
244253 final @ Nullable String username = user .getUsername ();
245254 if (username != null ) {
246- attributes .put ("user.name" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , username ));
255+ attributes .put (
256+ "user.name" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , username ));
247257 }
248258 final @ Nullable String email = user .getEmail ();
249259 if (email != null ) {
250- attributes .put ("user.email" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , email ));
260+ attributes .put (
261+ "user.email" , new SentryLogEventAttributeValue (SentryAttributeType .STRING , email ));
251262 }
252263 }
253264 }
0 commit comments