def METHOD_NAME(self, key, value):
    # type: (str, AttributeValue) -> None
    """Sets an attribute or service name on a tag"""
    if not self.is_recording():
        return
    # Note - The OpenTelemetry API supports setting service names and service versions using `service.name` and
    # `service.version` attributes. This functionality is supported by Span.set_tag and NOT Span.set_tag_str().
    self._ddspan.set_tag(key, value)