resolveTags

fun IrFunction.resolveTags(annotation: FqName): List<Pair<String, String>>(source)

Reads the tags = [Tag(key, value), …] array of annotation — parameter index 1 on @Logged, @Timed and @Traced alike — into (key, value) pairs.

Class-level tags come first and the function's own tags after, so downstream a function tag with the same key wins (later Map entries / puts overwrite earlier ones).

Shared by the @Logged, @Timed and @Traced transformers.