feat: annotate measurements with their architecture (#540)

Closes https://github.com/ooni/probe/issues/1772
This commit is contained in:
Simone Basso 2021-10-13 10:31:46 +02:00 committed by GitHub
parent 46e00888ae
commit 43c349fe38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}