You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to compile: error: github.com/grafana/[email protected]/pkg/promtail/client/client.go:133:69: cannot use false (untyped bool constant) as config.HTTPClientOption value in argument to config.NewClientFromConfig
#8541
Please note that this is not the complete code but a part of it, where I am trying to create the promtail client.
When I compile it, the below error: /github.com/grafana/[email protected]/pkg/promtail/client/client.go:133:69: cannot use false (untyped bool constant) as config.HTTPClientOption value in argument to config.NewClientFromConfig
Please let me know if further details are required.
The text was updated successfully, but these errors were encountered:
I had raised the issue before and it was closed as I had not provided enough details, I apologize for that.
#8540
Please find below the details.
While trying to create new promtail client using
https://pkg.go.dev/github.com/grafana/[email protected]/pkg/promtail/client#New
Using golang v1.18
OS: rhel 8
I am trying to create promtail client to push logs. I am receiving the error when I try to create the client.
Below is the code segment from where I am trying to create the promtail client.
Please note that this is not the complete code but a part of it, where I am trying to create the promtail client.
When I compile it, the below error:
/github.com/grafana/[email protected]/pkg/promtail/client/client.go:133:69: cannot use false (untyped bool constant) as config.HTTPClientOption value in argument to config.NewClientFromConfig
Please let me know if further details are required.
The text was updated successfully, but these errors were encountered: