Skip to content

Commit ced9acf

Browse files
author
Nicolas Mattia
committed
Remove location from metadata
The current location metadata is always null. The user may set an actual location on the command line.
1 parent 7fa83b0 commit ced9acf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Hyperion/Main.hs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,11 @@ doAnalyze Config{..} cinfo bks = do
267267
| otherwise = reportMeasurements .~ Nothing
268268
report = results & imapped %@~ analyze & mapped %~ strip
269269
now <- getCurrentTime
270-
let -- TODO Use output of hostname(1) as reasonable default.
271-
hostId = Nothing :: Maybe Text
272-
metadata =
270+
let metadata =
273271
configUserMetadata
274272
-- Prepend user metadata so that the user can rewrite @timestamp@,
275273
-- for instance.
276-
<> HashMap.fromList [ "timestamp" JSON..= now, "location" JSON..= hostId ]
274+
<> HashMap.fromList [ "timestamp" JSON..= now ]
277275
void $ bracket
278276
(mapM (openReportHandle cinfo)
279277
$ Set.toList configReportOutputs)

0 commit comments

Comments
 (0)