feat: collect and serve pre-aggregated bytes and counts #3371
Annotations
8 errors and 11 warnings
golangci-lint:
pkg/pattern/instance_test.go#L42
Error return value of `instance.Push` is not checked (errcheck)
|
golangci-lint:
pkg/pattern/ingester_querier.go#L82
S1034: assigning the result of this type assertion to a variable (switch expr := expr.(type)) could eliminate type assertions in switch cases (gosimple)
|
golangci-lint:
pkg/pattern/ingester_querier.go#L84
S1034(related information): could eliminate this type assertion (gosimple)
|
golangci-lint:
pkg/pattern/ingester_querier.go#L86
S1034(related information): could eliminate this type assertion (gosimple)
|
golangci-lint:
pkg/pattern/metric/evaluator_test.go#L36
S1040: type assertion to the same type: expr already has type syntax.SampleExpr (gosimple)
|
golangci-lint:
pkg/pattern/ingester.go#L248
ineffectual assignment to err (ineffassign)
|
golangci-lint:
pkg/pattern/ingester_test.go#L33
ineffectual assignment to err (ineffassign)
|
golangci-lint
issues found
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
golangci-lint:
pkg/pattern/metric/chunk.go#L53
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
pkg/pattern/metric/chunk.go#L17
exported: type name will be used as metric.MetricType by other packages, and that stutters; consider calling this Type (revive)
|
golangci-lint:
pkg/pattern/metric/evaluator.go#L189
unused-parameter: parameter 'expr' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
pkg/pattern/metric/chunk.go#L90
exported: type name will be used as metric.MetricSample by other packages, and that stutters; consider calling this Sample (revive)
|
golangci-lint:
pkg/pattern/metric/chunk.go#L104
exported: type name will be used as metric.MetricSamples by other packages, and that stutters; consider calling this Samples (revive)
|
golangci-lint:
pkg/pattern/metric/evaluator.go#L309
unexported-return: exported func NewParams returns unexported type *metric.paramCompat, which can be annoying to use (revive)
|
golangci-lint:
pkg/pattern/ingester_querier_test.go#L121
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
pkg/pattern/ingester_querier_test.go#L125
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
pkg/pattern/ingester_querier_test.go#L145
unused-parameter: parameter 'listener' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
pkg/pattern/ingester_querier_test.go#L156
unused-parameter: parameter 'key' seems to be unused, consider removing or renaming it as _ (revive)
|
Loading