aws-o11y-recipes icon indicating copy to clipboard operation
aws-o11y-recipes copied to clipboard

What Go version should be used for CWMetricsStreamExporter?

Open wattdave opened this issue 1 year ago • 2 comments

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

wattdave avatar Jul 27 '22 21:07 wattdave

Weirdly, I get the same error on go 1.16? Did someone forget something?

wattdave avatar Jul 27 '22 21:07 wattdave

Hmm, I'm using Go 1.17.6 and can't reproduce it.

mhausenblas avatar Jul 29 '22 12:07 mhausenblas