Skip to content

Commit 2edaa8c

Browse files
chargomeLms24
andauthored
Update packages/core/src/server-runtime-client.ts
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
1 parent d28c030 commit 2edaa8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/server-runtime-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,8 @@ export class ServerRuntimeClient<
186186
this.on('processMetric', metric => {
187187
if (this._options.serverName) {
188188
metric.attributes = {
189+
'server.address': this._options.serverName,
189190
...metric.attributes,
190-
'server.address': metric.attributes?.['server.address'] ?? this._options.serverName,
191191
};
192192
}
193193
});

0 commit comments

Comments
 (0)