Skip to content

Commit

Permalink
fix: Use statsd host from env
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayprabhu committed Nov 11, 2024
1 parent 66d6af9 commit 5b80d1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shaggy-hounds-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farcaster/shuttle": patch
---

fix: Use statsd host from env
2 changes: 1 addition & 1 deletion packages/shuttle/src/statsd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { isIP } from "node:net";
import StatsD from "@farcaster/hot-shots";

export const statsd = new StatsD({
host: "127.0.0.1", // Avoid Node.js deprecation warning by specifying explicitly
host: process.env["STATSD_HOST"] || "127.0.0.1",
cacheDns: true,
maxBufferSize: 4096 /* 4KiB */,
udpSocketOptions: {
Expand Down

0 comments on commit 5b80d1a

Please sign in to comment.