aws-o11y-recipes
aws-o11y-recipes copied to clipboard
What Go version should be used for CWMetricsStreamExporter?
When I do a go build -o main main.go
on https://github.com/aws-observability/aws-o11y-recipes/blob/main/sandbox/CWMetricStreamExporter/lambda/main.go I get the following error on a Mac with go 1.18.2:
» go build -o main main.go
# command-line-arguments
./main.go:82:15: cannot use currentLabels (variable of type []*prompb.Label) as type []prompb.Label in struct literal
./main.go:246:15: cannot use timeseries (variable of type []*prompb.TimeSeries) as type []prompb.TimeSeries in struct literal
-----------------------------------------------------------------------------------------------------------------------------
Weirdly, I get the same error on go 1.16? Did someone forget something?
Hmm, I'm using Go 1.17.6 and can't reproduce it.