From 6c5cd17fec8ad7dd3b0d8cd5e03b44395a55b8bb Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Thu, 3 Sep 2026 10:42:43 +0200 Subject: [PATCH] feat(names): Add `function` span name and description rules --- model/description/function.json | 12 ++++++++++++ model/name/function.json | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 model/description/function.json create mode 100644 model/name/function.json diff --git a/model/description/function.json b/model/description/function.json new file mode 100644 index 00000000..c17890ab --- /dev/null +++ b/model/description/function.json @@ -0,0 +1,12 @@ +{ + "brief": "Function", + "operations": [ + { + "name": "Function execution", + "brief": "The execution of a function or a set of instructions that isn't covered by a more specific operation.", + "ops": ["function"], + "templates": ["{{code.function.name}}"], + "examples": ["server_request", "handleSubmit"] + } + ] +} diff --git a/model/name/function.json b/model/name/function.json new file mode 100644 index 00000000..7df13aaa --- /dev/null +++ b/model/name/function.json @@ -0,0 +1,13 @@ +{ + "brief": "Function", + "operations": [ + { + "name": "Function execution", + "brief": "The execution of a function or a set of instructions that isn't covered by a more specific operation.", + "is_in_otel": false, + "ops": ["function"], + "templates": ["{{code.function.name}}", "Function execution"], + "examples": ["server_request", "handleSubmit", "Function execution"] + } + ] +}