Skip to content

Commit

Permalink
chore: conditional attr check for app name
Browse files Browse the repository at this point in the history
  • Loading branch information
MetinSeylan committed Mar 13, 2022
1 parent f764dce commit e85a93d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Metric/MetricService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export class MetricService {
delete attr['process.pid'];
delete attr['process.command_line'];

attr['application'] = this.sdkConfig.applicationName;
if (!attr['application']) {
attr['application'] = this.sdkConfig.applicationName;
}

return attr;
}
Expand Down

0 comments on commit e85a93d

Please sign in to comment.