{"record":{"id":"ceeed44dcc3e2f4a","repo":"cube-js/cube","slug":"unknown-cuberpc-service-argument","errorCode":null,"errorMessage":"unknown cuberpc::service argument","messagePattern":"unknown cuberpc::service argument","errorType":"validation","errorClass":"syn::Error","httpStatus":null,"severity":"error","filePath":"rust/cubestore/cuberpc/src/lib.rs","lineNumber":37,"sourceCode":"/// `trace_guard = <path>`: generate a `Traced<Service>` decorator that wraps an\n/// `Arc<dyn Service>` and, for every async method, holds the guard returned by\n/// `<path>(method_name)` across the call. Keeps cuberpc decoupled from the host\n/// crate's tracing module.\nstruct ServiceArgs {\n    trace_guard: Option<syn::Path>,\n}\n\nimpl Parse for ServiceArgs {\n    fn parse(input: ParseStream) -> syn::Result<Self> {\n        let mut trace_guard = None;\n        if !input.is_empty() {\n            let key: Ident = input.parse()?;\n            input.parse::<syn::Token![=]>()?;\n            let path: syn::Path = input.parse()?;\n            if key == \"trace_guard\" {\n                trace_guard = Some(path);\n            } else {\n                return Err(syn::Error::new(\n                    key.span(),\n                    \"unknown cuberpc::service argument\",\n                ));\n            }\n        }\n        Ok(ServiceArgs { trace_guard })\n    }\n}\n\nstruct RpcService {\n    ident: Ident,\n    methods: Vec<RpcMethod>,\n    trace_guard: Option<syn::Path>,\n}\n\nstruct RpcMethod {\n    ident: Ident,\n    asyncness: bool,","sourceCodeStart":19,"sourceCodeEnd":55,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/rust/cubestore/cuberpc/src/lib.rs#L19-L55","documentation":"A proc-macro parse error for the #[cuberpc::service] attribute: an argument key other than the recognized trace_guard was supplied in the attribute parentheses. The input at fault is the attribute argument list in the Rust source, so this is a compile-time authoring error, not a runtime one.","triggerScenarios":"Thrown at rust/cubestore/cuberpc/src/lib.rs:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use only the supported attribute argument, e.g. #[cuberpc::service(trace_guard = my_path::trace_guard)]","Remove the unrecognized key from the attribute"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}