def METHOD_NAME(self, nop_span):
    """Ensure keys that can be handled by our impl. are indeed handled."""
    import traceback
    from ddtrace.constants import ERROR_MSG
    from ddtrace.constants import ERROR_STACK
    from ddtrace.constants import ERROR_TYPE
    stack_trace = str(traceback.format_stack())
    nop_span.log_kv(
        {
            "event": "error",
            "error": 3,
            "message": "my error message",
            "stack": stack_trace,
        }
    )
    # Ensure error flag is set...
    assert nop_span._dd_span.error
    # ...and that error tags are set with the correct key
    assert nop_span._get_tag(ERROR_STACK) == stack_trace
    assert nop_span._get_tag(ERROR_MSG) == "my error message"
    assert nop_span._get_metric(ERROR_TYPE) == 3