{"record":{"id":"5cb0212d0f23bd5a","repo":"grafana/k6","slug":"the-cloud-output-needs-the-following-system-tags-e","errorCode":null,"errorMessage":"the cloud output needs the following system tags enabled: %s","messagePattern":"the cloud output needs the following system tags enabled: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/cmd/outputs_cloud.go","lineNumber":300,"sourceCode":"\treturn nil\n}\n\n// validateRequiredSystemTags checks if all required tags are present.\nfunc validateRequiredSystemTags(scriptTags *metrics.SystemTagSet) error {\n\tvar missingRequiredTags []string\n\trequiredTags := metrics.SystemTagSet(metrics.TagName |\n\t\tmetrics.TagMethod |\n\t\tmetrics.TagStatus |\n\t\tmetrics.TagError |\n\t\tmetrics.TagCheck |\n\t\tmetrics.TagGroup)\n\tfor _, tag := range metrics.SystemTagValues() {\n\t\tif requiredTags.Has(tag) && !scriptTags.Has(tag) {\n\t\t\tmissingRequiredTags = append(missingRequiredTags, tag.String())\n\t\t}\n\t}\n\tif len(missingRequiredTags) > 0 {\n\t\treturn fmt.Errorf(\n\t\t\t\"the cloud output needs the following system tags enabled: %s\",\n\t\t\tstrings.Join(missingRequiredTags, \", \"),\n\t\t)\n\t}\n\treturn nil\n}\n\nfunc cloudConfToRawMessage(conf cloudapi.Config) (json.RawMessage, error) {\n\tvar buff bytes.Buffer\n\tenc := json.NewEncoder(&buff)\n\tif err := enc.Encode(conf); err != nil {\n\t\treturn nil, err\n\t}\n\treturn buff.Bytes(), nil\n}\n\n// resolveCloudTestName returns the test name from the config, or derives it from\n// the script path when the config name is unset. A name of \"-\" is replaced","sourceCodeStart":282,"sourceCodeEnd":318,"githubUrl":"https://github.com/grafana/k6/blob/93accf6570dcd306ca5e99cc44c393ee3797761b/internal/cmd/outputs_cloud.go#L282-L318","documentation":"Error \"the cloud output needs the following system tags enabled: %s\" thrown in grafana/k6.","triggerScenarios":"Thrown at internal/cmd/outputs_cloud.go:300 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93accf6570dcd306ca5e99cc44c393ee3797761b","analyzedAt":"2026-08-15T21:23:27.118Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}