def METHOD_NAME(match: Match[str]) -> str:
    # Find the first (should be only) non-None match entry, and sub in the placeholder. For
    # example, given the groupdict item `('hex', '0x40000015')`, this returns '<hex>' as a
    # replacement for the original value in the string.
    for key, value in match.groupdict().items():
        if value is not None:
            # `key` can only be one of the keys from `_parameterization_regex`, thus, not a large
            # cardinality. Tracking the key helps distinguish what kinds of replacements are happening.
            metrics.incr("grouping.value_trimmed_from_message", tags={"key": key})
            # For `quoted_str` and `bool` we want to preserve the `=` symbol, which we include in
            # the match in order not to replace random quoted strings and the words 'true' and 'false'
            # in contexts other than key-value pairs
            return f"=<{key}>" if key in ["quoted_str", "bool"] else f"<{key}>"
    return ""