Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

What Go version should be used for CWMetricsStreamExporter? #57

Open
wattdave opened this issue Jul 27, 2022 · 2 comments
Open

What Go version should be used for CWMetricsStreamExporter? #57

wattdave opened this issue Jul 27, 2022 · 2 comments

Comments

@wattdave
Copy link

wattdave commented Jul 27, 2022

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
Copy link
Author

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

@mhausenblas
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants