{"record":{"id":"708f87fe49dcf582","repo":"pulumi/pulumi","slug":"checking-monitor-feature-q-w","errorCode":null,"errorMessage":"checking monitor feature %q: %w","messagePattern":"checking monitor feature %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sdk/go/pulumi/context.go","lineNumber":160,"sourceCode":"\tif info.Mocks != nil {\n\t\tmonitor = &mockMonitor{project: info.Project, stack: info.Stack, mocks: info.Mocks}\n\t\tengine = &mockEngine{}\n\t}\n\n\tif wrap := info.wrapResourceMonitorClient; wrap != nil {\n\t\tmonitor = wrap(monitor)\n\t}\n\n\tvar monitorFeatures []pulumirpc.ResourceMonitorFeature\n\tif monitor != nil {\n\t\tdeploymentInfo, err := monitor.GetDeploymentInfo(ctx, &emptypb.Empty{})\n\t\tif err == nil {\n\t\t\tmonitorFeatures = deploymentInfo.GetSupportedFeatures()\n\t\t} else if status.Code(err) == codes.Unimplemented {\n\t\t\tfor _, k := range slices.Sorted(maps.Keys(legacyFeatureMapping)) {\n\t\t\t\tr, err := monitor.SupportsFeature(ctx, &pulumirpc.SupportsFeatureRequest{Id: k})\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn nil, fmt.Errorf(\"checking monitor feature %q: %w\", k, err)\n\t\t\t\t}\n\t\t\t\tif r.GetHasSupport() {\n\t\t\t\t\tmonitorFeatures = append(monitorFeatures, legacyFeatureMapping[k])\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn nil, fmt.Errorf(\"checking monitor features: %w\", err)\n\t\t}\n\t}\n\n\thas := func(feature pulumirpc.ResourceMonitorFeature) bool { return slices.Contains(monitorFeatures, feature) }\n\n\tcontextState := &contextState{\n\t\tinfo:                     info,\n\t\texports:                  make(map[string]Input),\n\t\tmonitorConn:              monitorConn,\n\t\tmonitor:                  monitor,\n\t\tengineConn:               engineConn,","sourceCodeStart":142,"sourceCodeEnd":178,"githubUrl":"https://github.com/pulumi/pulumi/blob/793f7b2e160db4321fb7fb6b0607461e01cb251e/sdk/go/pulumi/context.go#L142-L178","documentation":"Error \"checking monitor feature %q: %w\" thrown in pulumi/pulumi.","triggerScenarios":"Thrown at sdk/go/pulumi/context.go:160 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":"793f7b2e160db4321fb7fb6b0607461e01cb251e","analyzedAt":"2026-08-31T09:36:43.099Z","schemaVersion":2},"datasetVersion":"2026-08-31T14:17:45.589Z"}