{"source":"semconv","version":"1.44.0","attribute":{"id":"code.function.name","type":"string","stability":"stable","brief":"The method or function fully-qualified name without arguments. The value should fit the natural representation of the language runtime, which is also likely the same used within `code.stacktrace` attribute value. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Function'. This constraint is imposed to prevent redundancy and maintain data integrity.","note":"Values and format depends on each language runtime, thus it is impossible to provide an exhaustive list of examples.\nThe values are usually the same (or prefixes of) the ones found in native stack trace representation stored in\n`code.stacktrace` without information on arguments.\n\nExamples:\n\n* Java method: `com.example.MyHttpService.serveRequest`\n* Java anonymous class method: `com.mycompany.Main$1.myMethod`\n* Java lambda method: `com.mycompany.Main$$Lambda/0x0000748ae4149c00.myMethod`\n* PHP function: `GuzzleHttp\\Client::transfer`\n* Go function: `github.com/my/repo/pkg.foo.func5`\n* Elixir: `OpenTelemetry.Ctx.new`\n* Erlang: `opentelemetry_ctx:new`\n* Rust: `playground::my_module::my_cool_func`\n* C function: `fopen`","examples":["com.example.MyHttpService.serveRequest","GuzzleHttp\\Client::transfer","fopen"],"namespace":"code","definedIn":"model/code/registry.yaml","usedBy":[{"groupId":"code","groupType":"attribute_group","requirementLevel":"recommended"}]},"history":[{"version":"1.30.0","publishedAt":"2025-01-24T19:11:42Z","kind":"first-seen","detail":"Already present at v1.30.0, the oldest release tracked here (experimental)."},{"version":"1.31.0","publishedAt":"2025-03-11T00:53:13Z","kind":"stability-changed","detail":"Promoted to release_candidate.","severity":"notable"},{"version":"1.33.0","publishedAt":"2025-05-02T19:48:40Z","kind":"stability-changed","detail":"Promoted to stable.","severity":"notable"}],"replaces":[]}