Skip to content

Commit 00b67db

Browse files
committed
fix: Defaults hostname to app name
1 parent cad2405 commit 00b67db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapter/StatsD/MetricFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ protected function getSampleRate(): float
116116

117117
protected function getHostname(): string
118118
{
119-
return $this->config->get('hostname', env('HOSTNAME'));
119+
return $this->config->get('hostname', env('HOSTNAME', env('APP_NAME')));
120120
}
121121
}

0 commit comments

Comments
 (0)