From 43c349fe38792b7244a9a7cd0136bc521ea74987 Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Wed, 13 Oct 2021 10:31:46 +0200 Subject: [PATCH] feat: annotate measurements with their architecture (#540) Closes https://github.com/ooni/probe/issues/1772 --- internal/engine/experiment.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/engine/experiment.go b/internal/engine/experiment.go index 27eb22b..ccb7935 100644 --- a/internal/engine/experiment.go +++ b/internal/engine/experiment.go @@ -6,6 +6,7 @@ import ( "errors" "net/http" "os" + "runtime" "time" "github.com/ooni/probe-cli/v3/internal/bytecounter" @@ -272,6 +273,7 @@ func (e *Experiment) newMeasurement(input string) *model.Measurement { m.AddAnnotation("engine_name", "ooniprobe-engine") m.AddAnnotation("engine_version", version.Version) m.AddAnnotation("platform", e.session.Platform()) + m.AddAnnotation("architecture", runtime.GOARCH) return m }