Skip to content

Commit 8430fb4

Browse files
authored
feat: track user Ethereum address in metrics instead of geographic location (#15)
1 parent d197210 commit 8430fb4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ EigenX collects anonymous usage data to help us improve the CLI and understand h
296296
- Error counts and types to identify common issues
297297
- Performance metrics (command execution times)
298298
- System information (OS, architecture)
299-
- Geographic location (country/city level only)
300299
- Deployment environment (e.g., sepolia, mainnet-alpha)
300+
- User Ethereum address
301301

302302
### What We DON'T Collect
303303

pkg/hooks/hooks.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"os"
66
"time"
77

8+
"github.com/Layr-Labs/eigenx-cli/pkg/commands/utils"
89
"github.com/Layr-Labs/eigenx-cli/pkg/common"
910
"github.com/Layr-Labs/eigenx-cli/pkg/common/iface"
1011
"github.com/Layr-Labs/eigenx-cli/pkg/common/logger"
@@ -364,6 +365,12 @@ func WithCommandMetricsContext(ctx *cli.Context) error {
364365
metrics.Properties["user_uuid"] = appEnv.UserUUID
365366
}
366367

368+
// Set user address in metrics if available
369+
address, err := utils.GetDeveloperAddress(ctx)
370+
if err == nil {
371+
metrics.Properties["user_address"] = address.Hex()
372+
}
373+
367374
// Set flags in metrics
368375
for k, v := range collectFlagValues(ctx) {
369376
metrics.Properties[k] = fmt.Sprintf("%v", v)

0 commit comments

Comments
 (0)